Class: TerraBoi::DataConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/terra_boi/data_config_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#application_nameObject

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_fileObject



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

#initObject



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