Class: FatFreeWunderlist::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- FatFreeWunderlist::Generators::InstallGenerator
- Defined in:
- lib/generators/fat_free_wunderlist/install/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#copy_initializer ⇒ Object
Copy the initializer file from templates to the Rails intializer directory.
Class Method Details
.source_root ⇒ Object
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.("../templates", __FILE__) end |
Instance Method Details
#copy_initializer ⇒ Object
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 |