Class: RailstankGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



4
5
6
# File 'lib/generators/railstank/railstank_generator.rb', line 4

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

Instance Method Details

#copy_config_fileObject



8
9
10
# File 'lib/generators/railstank/railstank_generator.rb', line 8

def copy_config_file
  copy_file "indextank.yml.example", "config/indextank.yml.example"
end