Class: Rugular::Dependencies
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Rugular::Dependencies
- Includes:
- Thor::Actions
- Defined in:
- lib/rugular/tasks/dependencies.rb
Instance Method Summary collapse
- #bower ⇒ Object
- #bundle ⇒ Object
-
#install_protractor ⇒ Object
Protractor needs to be installed globally.
- #npm_install ⇒ Object
Instance Method Details
#bower ⇒ Object
16 17 18 19 |
# File 'lib/rugular/tasks/dependencies.rb', line 16 def bower puts 'Installing bower packages' system('bower install') end |
#bundle ⇒ Object
11 12 13 14 |
# File 'lib/rugular/tasks/dependencies.rb', line 11 def bundle puts 'Installing Ruby gems' system('bundle install') end |
#install_protractor ⇒ Object
Protractor needs to be installed globally
26 27 28 |
# File 'lib/rugular/tasks/dependencies.rb', line 26 def install_protractor `npm install -g protractor coffee-script mocha` end |
#npm_install ⇒ Object
21 22 23 |
# File 'lib/rugular/tasks/dependencies.rb', line 21 def npm_install system('npm install') end |