Class: FatFreeWunderlist::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/fat_free_wunderlist/install/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
# File 'lib/generators/fat_free_wunderlist/install/install_generator.rb', line 8

def self.source_root
	@_fat_free_wunderlist_source_root ||= File.expand_path("../templates", __FILE__)
end

Instance Method Details

#copy_initializerObject

Copy the initializer file from templates to the Rails intializer directory



14
15
16
17
# File 'lib/generators/fat_free_wunderlist/install/install_generator.rb', line 14

def copy_initializer
	copy_file "fat_free_wunderlist.rb", "config/initializers/fat_free_wunderlist.rb"
	puts "Please edit the settings in config/initializers/fat_free_wunderlist.rb."
end