Class: Nodeify::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Nodeify::Generators::InstallGenerator
- Defined in:
- lib/generators/nodeify/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_app_file ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/generators/nodeify/install_generator.rb', line 9 def create_app_file inside 'vendor/assets/javascripts' do copy_file 'package.json' run 'npm install' end git :add => 'vendor/assets/javascripts' git :commit => '-m "Added base nodeify npm packages"' end |