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