Sha256: 6539700c474ed4309406b3d76eb4423c715d4dc14fe1ed48a88552f71d395668
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
require "zip/zip" class Joe < Thor alias_method :joe_build, :build def build fetch_jar joe_build end def fetch_jar url = "http://selenium.googlecode.com/files/selenium-server-standalone-2.0a2.jar" file = File.join("tmp", File.basename(url)) FileUtils.mkdir_p("tmp") system "wget #{url} -O #{file}" unless File.exist?(file) FileUtils.mv("#{file}", "vendor/selenium-server.jar") # Zip::ZipFile.open(file) do |zipfile| # jar_file_entry = zipfile.entries.find {|file| file.name =~ /selenium-server-standalone-2\.0a1\.jar$/} # destination = "vendor/selenium-server.jar" # FileUtils.rm_rf(destination) # zipfile.extract(jar_file_entry, destination) # end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
honkster-selenium-rc-2.2.2 | Thorfile |
selenium-rc-2.2.1 | Thorfile |