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, system_phantomjs_installed?, system_phantomjs_path, system_phantomjs_version, temp_path

Class Method Details

.package_urlObject



132
133
134
# File 'lib/phantomjs/platform.rb', line 132

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

.platformObject



128
129
130
# File 'lib/phantomjs/platform.rb', line 128

def platform
  'darwin'
end

.useable?Boolean

Returns:

  • (Boolean)


124
125
126
# File 'lib/phantomjs/platform.rb', line 124

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