Class: Phantomjs::Platform::Win32
Class Method Summary
collapse
architecture, ensure_installed!, host_os, install!, installed?, system_phantomjs_installed?, system_phantomjs_path, system_phantomjs_version, temp_path
Class Method Details
.package_url ⇒ Object
156
157
158
|
# File 'lib/phantomjs/platform.rb', line 156
def package_url
'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.0.0-windows.zip'
end
|
.phantomjs_path ⇒ Object
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
|
144
145
146
|
# File 'lib/phantomjs/platform.rb', line 144
def platform
'win32'
end
|
.useable? ⇒ Boolean
140
141
142
|
# File 'lib/phantomjs/platform.rb', line 140
def useable?
host_os.include?('mingw32') and architecture.include?('i686')
end
|