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, system_phantomjs_installed?, system_phantomjs_path, system_phantomjs_version

Class Method Details

.package_urlObject



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

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

.platformObject



108
109
110
# File 'lib/phantomjs/platform.rb', line 108

def platform
  'x86_32-linux'
end

.useable?Boolean

Returns:

  • (Boolean)


104
105
106
# File 'lib/phantomjs/platform.rb', line 104

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