Class: LearnTest::Dependencies::Protractor
- Inherits:
-
LearnTest::Dependency
- Object
- LearnTest::Dependency
- LearnTest::Dependencies::Protractor
- Defined in:
- lib/learn_test/dependencies/protractor.rb
Instance Attribute Summary
Attributes inherited from LearnTest::Dependency
Instance Method Summary collapse
Methods inherited from LearnTest::Dependency
#die, #execute, #initialize, #mac?, #print_installing, #run_install, #win?
Constructor Details
This class inherits a constructor from LearnTest::Dependency
Instance Method Details
#install ⇒ Object
8 9 10 11 12 13 |
# File 'lib/learn_test/dependencies/protractor.rb', line 8 def install print_installing('protractor') run_install('npm install -g protractor') puts 'Updating webdriver-manager...'.green run_install('webdriver-manager update') end |
#missing? ⇒ Boolean
4 5 6 |
# File 'lib/learn_test/dependencies/protractor.rb', line 4 def missing? `which protractor`.empty? end |