Class: RailstankGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RailstankGenerator
- Defined in:
- lib/generators/railstank/railstank_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
4 5 6 |
# File 'lib/generators/railstank/railstank_generator.rb', line 4 def self.source_root @source_root ||= File.('../templates', __FILE__) end |
Instance Method Details
#copy_config_file ⇒ Object
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 |