Sha256: 77162d4f81b5b87991d609e2a2c049e66ce17993734dd8fc284b2d96ab2ab41b

Contents?: true

Size: 613 Bytes

Versions: 2

Compression:

Stored size: 613 Bytes

Contents

module SauceOverage
  module SauceUtils
    # from: https://raw.githubusercontent.com/bootstraponline/webdriver_utils/master/lib/webdriver_utils/sauce.rb
    # top level sauce helper methods

    # Returns sauce username if env is set and not empty.
    # If env isn't defined then nil is returned.
    def sauce_user
      env = ENV['SAUCE_USERNAME']
      (env && !env.empty?) ? env : nil
    end

    # Returns sauce key if env is set and not empty.
    # If env isn't defined then nil is returned.
    def sauce_key
      env = ENV['SAUCE_ACCESS_KEY']
      (env && !env.empty?) ? env : nil
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sauce_overage-0.0.2 lib/sauce_overage/sauce_utils.rb
sauce_overage-0.0.1 lib/sauce_overage/sauce_utils.rb