Class: LearnTest::Dependencies::PhantomJS
Instance Attribute Summary
#options
Class Method Summary
collapse
Instance Method Summary
collapse
#die, #execute, #initialize, #mac?, #print_installing, #run_install
Class Method Details
.check_installation ⇒ Object
34
35
36
|
# File 'lib/learn_test/dependencies/phantomjs.rb', line 34
def self.check_installation
new.check_installation
end
|
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
|