Class: LearnTest::Dependencies::PhantomJS
- Inherits:
-
LearnTest::Dependency
- Object
- LearnTest::Dependency
- LearnTest::Dependencies::PhantomJS
- Defined in:
- lib/learn_test/dependencies/phantomjs.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
19 20 21 |
# File 'lib/learn_test/dependencies/phantomjs.rb', line 19 def install install_phantomjs end |
#missing? ⇒ Boolean
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/learn_test/dependencies/phantomjs.rb', line 6 def missing? if mac? die('You must have Homebrew installed') unless brew_installed? return !phantom_installed_on_mac? end unless phantom_installed_on_linux? die('You must have PhantomJS installed: http://phantomjs.org/download.html') end super end |