Class: Purgeable::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Purgeable::InstallGenerator
- Defined in:
- lib/generators/purgeable/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.gem_root ⇒ Object
10 11 12 |
# File 'lib/generators/purgeable/install_generator.rb', line 10 def self.gem_root File.("../../../../", __FILE__) end |
.source_root ⇒ Object
14 15 16 |
# File 'lib/generators/purgeable/install_generator.rb', line 14 def self.source_root File.join(gem_root, 'templates/install') end |
Instance Method Details
#generate ⇒ Object
6 7 8 |
# File 'lib/generators/purgeable/install_generator.rb', line 6 def generate copy_file "purgeable.yml", "config/purgeable.yml" end |