Sha256: 854e8129d323e6624894f55dbcf2346cdffcb2c4e75d09d7b994471d9b26e0a6

Contents?: true

Size: 808 Bytes

Versions: 11

Compression:

Stored size: 808 Bytes

Contents

desc 'chromedriver-update', 'Update the chromedriver'

long_desc <<-LONGDESC
Example: `geordi chromedriver_update`

This command will find and install the matching chromedriver for the currently installed Chrome.
LONGDESC

def chromedriver_update
  require 'geordi/chromedriver_updater'

  # Ruby 1.9.3 introduces #capture3 in open3
  supported_ruby_version = '1.9.2'

  # We do not want to backport this command to Ruby 1.8.7, a user can just use a newer Ruby version to run it. For all
  # other commands it still is necessary to have a proper Ruby 1.8.7 support.
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new(supported_ruby_version)
    raise("Unsupported ruby version #{RUBY_VERSION}, please use at least #{supported_ruby_version} to run this command!")
  end

  ChromedriverUpdater.new.run
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
geordi-2.12.3 lib/geordi/commands/chromedriver_update.rb
geordi-2.12.2 lib/geordi/commands/chromedriver_update.rb
geordi-2.12.1 lib/geordi/commands/chromedriver_update.rb
geordi-2.12.0 lib/geordi/commands/chromedriver_update.rb
geordi-2.11.0 lib/geordi/commands/chromedriver_update.rb
geordi-2.10.1 lib/geordi/commands/chromedriver_update.rb
geordi-2.10.0 lib/geordi/commands/chromedriver_update.rb
geordi-2.9.0 lib/geordi/commands/chromedriver_update.rb
geordi-2.8.0 lib/geordi/commands/chromedriver_update.rb
geordi-2.7.0 lib/geordi/commands/chromedriver_update.rb
geordi-2.6.0 lib/geordi/commands/chromedriver_update.rb