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
  'http://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2'
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