Sha256: 2275314e860b6f805b74ef11ab34d97dcf2843d6e0710d2b5b116a4cb2675516

Contents?: true

Size: 472 Bytes

Versions: 4

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Aranha
  module Selenium
    module Executables
      class << self
        enable_simple_cache

        def env
          ::EacRubyUtils::Envs.local
        end

        private

        %w[chromedriver geckodriver].each do |program|
          define_method("#{program.underscore}_uncached") do
            env.executable(program, '--version')
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aranha-selenium-0.11.1 lib/aranha/selenium/executables.rb
aranha-selenium-0.11.0 lib/aranha/selenium/executables.rb
aranha-selenium-0.10.1 lib/aranha/selenium/executables.rb
aranha-selenium-0.10.0 lib/aranha/selenium/executables.rb