Class: Pushkin::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pushkin::Generators::InstallGenerator
- Defined in:
- lib/generators/pushkin/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
4 5 6 |
# File 'lib/generators/pushkin/install_generator.rb', line 4 def self.source_root File.dirname(__FILE__) + "/templates" end |
Instance Method Details
#copy_files ⇒ Object
8 9 10 11 |
# File 'lib/generators/pushkin/install_generator.rb', line 8 def copy_files template "pushkin.yml", "config/pushkin.yml" copy_file "pushkin.ru", "pushkin.ru" end |