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
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_path ⇒ Object
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
|
164
165
166
|
# File 'lib/phantomjs/platform.rb', line 164
def platform
'win32'
end
|
.useable? ⇒ Boolean
160
161
162
|
# File 'lib/phantomjs/platform.rb', line 160
def useable?
host_os.include?('mingw32') and architecture.include?('i686')
end
|