incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1063752 - /incubator/deltacloud/trunk/client/lib/deltacloud.rb
Date Wed, 26 Jan 2011 15:01:56 GMT
Author: mfojtik
Date: Wed Jan 26 15:01:56 2011
New Revision: 1063752

URL: http://svn.apache.org/viewvc?rev=1063752&view=rev
Log:
Reverted change to Deltacloud client initializer

Modified:
    incubator/deltacloud/trunk/client/lib/deltacloud.rb

Modified: incubator/deltacloud/trunk/client/lib/deltacloud.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client/lib/deltacloud.rb?rev=1063752&r1=1063751&r2=1063752&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client/lib/deltacloud.rb (original)
+++ incubator/deltacloud/trunk/client/lib/deltacloud.rb Wed Jan 26 15:01:56 2011
@@ -32,17 +32,15 @@ module DeltaCloud
   #
   # @param [String, user_name] API user name
   # @param [String, password] API password
-  # @param [String, user_name] API URL (eg. http://localhost:3001/api)
+  # @param [String, url] API URL (eg. http://localhost:3001/api)
   # @return [DeltaCloud::API]
   #def self.new(user_name, password, api_url, opts={}, &block)
   #  opts ||= {}
   #  API.new(user_name, password, api_url, opts, &block)
   #end
 
-  def self.new(opts={}, &block)
-    opts ||={}
-    client = API.new(opts[:username], opts[:password], opts[:url], opts, &block)
-    client.use_driver(opts[:driver], opts) if opts[:driver]
+  def self.new(user_name, password, api_url, &block)
+    API.new(user_name, password, api_url, &block)
   end
 
   # Check given credentials if their are valid against



Mime
View raw message