Class: Phantomjs::Platform::Win32

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

Class Method Details

.package_urlObject


156
157
158
# File 'lib/phantomjs/platform.rb', line 156

def package_url
  'https://phantomjs.googlecode.com/files/phantomjs-1.9.2-windows.zip'
end

.phantomjs_pathObject


148
149
150
151
152
153
154
# File 'lib/phantomjs/platform.rb', line 148

def phantomjs_path
  if system_phantomjs_installed?
    system_phantomjs_path
  else
    File.expand_path File.join(Phantomjs.base_dir, platform, 'phantomjs.exe')
  end
end

.platformObject


144
145
146
# File 'lib/phantomjs/platform.rb', line 144

def platform
  'win32'
end

.useable?Boolean

Returns:

  • (Boolean)

140
141
142
# File 'lib/phantomjs/platform.rb', line 140

def useable?
  host_os.include?('mingw32') and architecture.include?('i686')
end