Class: Rugular::Dependencies

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/rugular/tasks/dependencies.rb

Instance Method Summary collapse

Instance Method Details

#bowerObject



16
17
18
19
# File 'lib/rugular/tasks/dependencies.rb', line 16

def bower
  puts 'Installing bower packages'
  system('bower install')
end

#bundleObject



11
12
13
14
# File 'lib/rugular/tasks/dependencies.rb', line 11

def bundle
  puts 'Installing Ruby gems'
  system('bundle install')
end

#install_protractorObject

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_installObject



21
22
23
# File 'lib/rugular/tasks/dependencies.rb', line 21

def npm_install
  system('npm install')
end