Sha256: b47715bc8286fe2be73c2326bd3c1ae18d2da7482e6e799177b172f015083242

Contents?: true

Size: 656 Bytes

Versions: 11

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true
require 'yaml'
<% if automation == 'selenium' -%>
require 'active_support/inflector'
require 'webdrivers'
<% else -%>
require 'appium_lib'
<% end -%>

module Raider
  module DriverHelper
    attr_reader :driver

 <%= ERB.new(File.read(File.expand_path('./partials/driver_and_options.tt', __dir__)), trim_mode: '-').result(binding).strip! %>

  <% if automation == 'cross_platform' -%>
  private

    def config
      YAML.load_file('config/config.yml')
    end
<% end -%>
<% if automation != 'selenium'  -%>
    # :reek:UtilityFunction
    def caps
      YAML.load_file('config/capabilities.yml')
    end
<% end -%>
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby_raider-0.7.1 lib/generators/templates/helpers/driver_helper.tt
ruby_raider-0.7.0 lib/generators/templates/helpers/driver_helper.tt
ruby_raider-0.6.9 lib/generators/templates/helpers/driver_helper.tt
ruby_raider-0.6.8 lib/generators/templates/helpers/driver_helper.tt
ruby_raider-0.6.7 lib/generators/templates/helpers/driver_helper.tt
ruby_raider-0.6.6 lib/generators/templates/helpers/driver_helper.tt
ruby_raider-0.6.5 lib/generators/templates/helpers/driver_helper.tt
ruby_raider-0.6.4 lib/generators/templates/helpers/driver_helper.tt
ruby_raider-0.6.3 lib/generators/templates/helpers/driver_helper.tt
ruby_raider-0.6.2 lib/generators/templates/helpers/driver_helper.tt
ruby_raider-0.6.1 lib/generators/templates/helpers/driver_helper.tt