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

Class Method Details

.package_urlObject



78
79
80
# File 'lib/phantomjs/platform.rb', line 78

def package_url
  'http://phantomjs.googlecode.com/files/phantomjs-1.7.0-linux-x86_64.tar.bz2'
end

.platformObject



74
75
76
# File 'lib/phantomjs/platform.rb', line 74

def platform
  'x86_64-linux'
end

.useable?Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/phantomjs/platform.rb', line 70

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