Class: TerraBoi::DataConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- TerraBoi::DataConfigGenerator
- Defined in:
- lib/generators/terra_boi/data_config_generator.rb
Instance Attribute Summary collapse
-
#application_name ⇒ Object
Returns the value of attribute application_name.
Instance Method Summary collapse
Instance Attribute Details
#application_name ⇒ Object
Returns the value of attribute application_name.
5 6 7 |
# File 'lib/generators/terra_boi/data_config_generator.rb', line 5 def application_name @application_name end |
Instance Method Details
#create_data_config_file ⇒ Object
21 22 23 |
# File 'lib/generators/terra_boi/data_config_generator.rb', line 21 def create_data_config_file template "data_storage_config.erb", "config/storage.yml" end |
#init ⇒ Object
16 17 18 19 |
# File 'lib/generators/terra_boi/data_config_generator.rb', line 16 def init # defined in lib/generators/extensions self.application_name = generate_application_name end |