Sha256: 37633f9fdf59217e22d7823ba3225bc7f1470c0f5be90fa4e93469f11786e7e6

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

require "zip/zip"

class Joe < Thor
  desc "download", "download the Selenium jar file from Google Code repository"
  def download
    url = "http://selenium.googlecode.com/files/selenium-server-standalone-2.47.1.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")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
selenium-rc-latest-2.47.1.2 Thorfile
selenium-rc-latest-2.47.1.1 Thorfile
selenium-rc-latest-2.47.1 Thorfile