Class: Purgeable::InstallGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.gem_rootObject



10
11
12
# File 'lib/generators/purgeable/install_generator.rb', line 10

def self.gem_root
  File.expand_path("../../../../", __FILE__)
end

.source_rootObject



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

#generateObject



6
7
8
# File 'lib/generators/purgeable/install_generator.rb', line 6

def generate
  copy_file "purgeable.yml", "config/purgeable.yml"
end