Class: TerraBoi::BoilerplateGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- TerraBoi::BoilerplateGenerator
- Defined in:
- lib/generators/terra_boi/boilerplate_generator.rb
Instance Attribute Summary collapse
-
#application_name ⇒ Object
Returns the value of attribute application_name.
-
#class_options ⇒ Object
Returns the value of attribute class_options.
Instance Method Summary collapse
Instance Attribute Details
#application_name ⇒ Object
Returns the value of attribute application_name.
3 4 5 |
# File 'lib/generators/terra_boi/boilerplate_generator.rb', line 3 def application_name @application_name end |
#class_options ⇒ Object
Returns the value of attribute class_options.
3 4 5 |
# File 'lib/generators/terra_boi/boilerplate_generator.rb', line 3 def @class_options end |
Instance Method Details
#init ⇒ Object
27 28 29 30 |
# File 'lib/generators/terra_boi/boilerplate_generator.rb', line 27 def init self. = puts application_name end |
#run_other_generators ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/generators/terra_boi/boilerplate_generator.rb', line 32 def run_other_generators generate "terra_boi:tf_cert -d #{[:domain_name]}" generate "terra_boi:tf_ecr" generate "terra_boi:tf_lib -d #{[:domain_name]}" generate "terra_boi:tf_env -e #{[:envs].join(' ')} -d #{[:domain_name]}" generate "terra_boi:tf_state" generate "terra_boi:dockerfile --ruby_version #{[:ruby_version]}" generate "terra_boi:host_initializer -d #{[:domain_name]}" generate "terra_boi:db_config" generate "terra_boi:data_config" end |