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



120
121
122
# File 'lib/phantomjs/platform.rb', line 120

def package_url
  'https://github.com/eugene1g/phantomjs/releases/download/2.0.0-bin/phantomjs-2.0.0-ubuntu_x86_64.zip'
end

.platformObject



116
117
118
# File 'lib/phantomjs/platform.rb', line 116

def platform
  'x86_64-linux'
end

.useable?Boolean

Returns:

  • (Boolean)


112
113
114
# File 'lib/phantomjs/platform.rb', line 112

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