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



176
177
178
# File 'lib/phantomjs/platform.rb', line 176

def package_url
  'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.0.0-windows.zip'
end

.phantomjs_pathObject



168
169
170
171
172
173
174
# File 'lib/phantomjs/platform.rb', line 168

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



164
165
166
# File 'lib/phantomjs/platform.rb', line 164

def platform
  'win32'
end

.useable?Boolean

Returns:

  • (Boolean)


160
161
162
# File 'lib/phantomjs/platform.rb', line 160

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