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