Sha256: 392d89ee10d0ac244c5f3bf7712657debc907bb7ff22769f957f707a677cd6ef

Contents?: true

Size: 739 Bytes

Versions: 14

Compression:

Stored size: 739 Bytes

Contents

require 'daddy/itamae'

directory 'tmp'

version = ENV['GECKO_DRIVER_VERSION'] || ItamaePluginRecipeDaddy::GECKO_DRIVER_VERSION

execute "download geckodriver-#{version}" do
  cwd 'tmp'
  command <<-EOF
    rm -Rf geckodriver-v#{version}-linux64*
    wget https://github.com/mozilla/geckodriver/releases/download/v#{version}/geckodriver-v#{version}-linux64.tar.gz
  EOF
  not_if "sha256sum -c #{::File.join(::File.dirname(__FILE__), "geckodriver-v#{version}-linux64_sha256sum.txt")}"
end

execute "install geckodriver-#{version}" do
  cwd 'tmp'
  command <<-EOF
    tar zxf geckodriver-v#{version}-linux64.tar.gz
    sudo mv -f geckodriver /usr/local/bin/
  EOF
  not_if "/usr/local/bin/geckodriver -V | grep 'geckodriver #{version}'"
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
itamae-plugin-recipe-daddy-0.1.17 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.16 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.15 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.14 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.13 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.12 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.11 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.10 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.9 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.8 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.7 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.6 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.5 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
itamae-plugin-recipe-daddy-0.1.4 lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb