Class: Gutsy::Cli::Generator
- Inherits:
-
Object
- Object
- Gutsy::Cli::Generator
- Extended by:
- Forwardable
- Defined in:
- lib/gutsy/generator.rb
Defined Under Namespace
Classes: ResourceState, State
Instance Attribute Summary collapse
-
#app_name ⇒ Object
readonly
Returns the value of attribute app_name.
Instance Method Summary collapse
- #generate! ⇒ Object
-
#initialize(app_name, schema_path, output_path) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
Instance Attribute Details
#app_name ⇒ Object (readonly)
Returns the value of attribute app_name.
53 54 55 |
# File 'lib/gutsy/generator.rb', line 53 def app_name @app_name end |
Instance Method Details
#generate! ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/gutsy/generator.rb', line 61 def generate! create_output_dir schema = load_and_validate_schema! state.resources = map_schema_to_resources(schema) scaffold_gem generate_heroics_client puts "Generated client gem can be found in... #{output_path}" end |