lib/rest.rb in sauce-0.2.0 vs lib/rest.rb in sauce-0.2.1

- old
+ new

@@ -5,21 +5,25 @@ # The module that brokers most communication with Sauce Labs' REST API class Client class BadAccessError < StandardError; end #nodoc class MisconfiguredError < StandardError; end #nodoc - attr_accessor :username, :access_key, :client, :api_url + attr_accessor :username, :access_key, :client, :ip, :api_url attr_accessor :tunnels def initialize(options) @username = options[:username] @access_key = options[:access_key] + @ip = options[:ip] raise MisconfiguredError if @username.nil? or @access_key.nil? @api_url = "https://#{@username}:#{@access_key}@saucelabs.com/rest/#{@username}/" @client = RestClient::Resource.new @api_url @tunnels = Sauce::Tunnel @tunnels.client = @client + @tunnels.account = {:username => @username, + :access_key => @access_key, + :ip => @ip} end end end