Creates a new Stub instance
The application instance
The raw contents of the stub template
The absolute path to the stub file
Prepare stub to be written to the disk
The data to use for stub preparation
Promise that resolves to the prepared stub data
Generate resource for the stub. Writes file to the disk
The data to use for stub generation
Promise that resolves to generation result with status
The stub class uses tempura template engine to process a stub template and generate a resource file.
Finding the correct stub to use is outside of the scope of this class.