deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1207785 - /deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb
Date Tue, 29 Nov 2011 08:38:42 GMT
Author: mfojtik
Date: Tue Nov 29 08:38:41 2011
New Revision: 1207785

URL: http://svn.apache.org/viewvc?rev=1207785&view=rev
Log:
Core: Added 'name' method for base_driver

Modified:
    deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb

Modified: deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb?rev=1207785&r1=1207784&r2=1207785&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb (original)
+++ deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb Tue Nov 29 08:38:41
2011
@@ -22,6 +22,10 @@ module Deltacloud
 
     include ExceptionHandler
 
+    def name
+      self.class.name.split('::').last.gsub('Driver', '').downcase
+    end
+
     def self.exceptions(&block)
       ExceptionHandler::exceptions(&block)
     end



Mime
View raw message