Class: PrivatePub::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PrivatePub::Generators::InstallGenerator
- Defined in:
- lib/generators/private_pub/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
4 5 6 |
# File 'lib/generators/private_pub/install_generator.rb', line 4 def self.source_root File.dirname(__FILE__) + "/templates" end |
Instance Method Details
#copy_files ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/generators/private_pub/install_generator.rb', line 8 def copy_files template "private_pub.yml", "config/private_pub.yml" if ::Rails.version < "3.1" copy_file "../../../../app/assets/javascripts/private_pub.js", "public/javascripts/private_pub.js" end copy_file "private_pub.ru", "private_pub.ru" end |