Class: Phantomjs::Platform::OsX

Inherits:
Phantomjs::Platform show all
Defined in:
lib/phantomjs/platform.rb

Class Method Summary collapse

Methods inherited from Phantomjs::Platform

architecture, ensure_installed!, host_os, install!, installed?, phantomjs_path

Class Method Details

.package_urlObject



110
111
112
# File 'lib/phantomjs/platform.rb', line 110

def package_url
  'http://phantomjs.googlecode.com/files/phantomjs-1.7.0-macosx.zip'
end

.platformObject



106
107
108
# File 'lib/phantomjs/platform.rb', line 106

def platform
  'darwin'
end

.useable?Boolean

Returns:

  • (Boolean)


102
103
104
# File 'lib/phantomjs/platform.rb', line 102

def useable?
  host_os.include?('darwin')
end