Class: Phantomjs::Platform::Linux32

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



94
95
96
# File 'lib/phantomjs/platform.rb', line 94

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

.platformObject



90
91
92
# File 'lib/phantomjs/platform.rb', line 90

def platform
  'x86_32-linux'
end

.useable?Boolean

Returns:

  • (Boolean)


86
87
88
# File 'lib/phantomjs/platform.rb', line 86

def useable?
  host_os.include?('linux') and (architecture.include?('x86_32') or architecture.include?('i686'))
end