Sha256: 23acd7a65d4201781caeead2a0e9fbe505c4169c615d649f66262a81b832feb8

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 Bytes

Contents

require "zip/zip"

class Joe < Thor
  desc "build", "builds the selenium-rc gem"
  def build
    fetch_jar
  end

  def fetch_jar
    url = "http://selenium.googlecode.com/files/selenium-server-standalone-2.0a4.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

1 entries across 1 versions & 1 rubygems

Version Path
selenium-rc-2.2.4 Thorfile