lib/syncano.rb in syncano-3.1.1.beta3 vs lib/syncano.rb in syncano-3.1.1.beta4
- old
+ new
@@ -17,10 +17,10 @@
# @return [Syncano::Clients::Rest] Syncano client.
def self.sync_client(options = {})
auth_data = self.auth_data(options)
client = Syncano::Clients::Sync.instance(auth_data[:instance_name], auth_data[:api_key], auth_data[:auth_key])
client.login(options[:username], options[:password]) if client.auth_key.nil? && options[:username].present?
- client.connect
+ client.reconnect
client
end
private
\ No newline at end of file