Class: Phantomjs::Platform::Linux64

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



100
101
102
# File 'lib/phantomjs/platform.rb', line 100

def package_url
  'https://github.com/bprodoehl/phantomjs/releases/download/v2.0.0-20150528/phantomjs-2.0.0-20150528-u1404-x86_64.zip'
end

.platformObject



96
97
98
# File 'lib/phantomjs/platform.rb', line 96

def platform
  'x86_64-linux'
end

.useable?Boolean

Returns:

  • (Boolean)


92
93
94
# File 'lib/phantomjs/platform.rb', line 92

def useable?
  host_os.include?('linux') and architecture.include?('x86_64')
end