incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1091416 - in /incubator/deltacloud/trunk/server/lib/deltacloud: drivers/gogrid/gogrid_client.rb helpers.rb
Date Tue, 12 Apr 2011 13:56:11 GMT
Author: mfojtik
Date: Tue Apr 12 13:56:10 2011
New Revision: 1091416

URL: http://svn.apache.org/viewvc?rev=1091416&view=rev
Log:
Moved Kernel::supress_warnings to GoGrid client

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb
    incubator/deltacloud/trunk/server/lib/deltacloud/helpers.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb?rev=1091416&r1=1091415&r2=1091416&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb Tue Apr
12 13:56:10 2011
@@ -20,6 +20,16 @@ require 'digest/md5'
 require 'cgi'
 require 'open-uri'
 
+module Kernel
+  def suppress_warnings
+    original_verbosity = $VERBOSE
+    $VERBOSE = nil
+    result = yield
+    $VERBOSE = original_verbosity
+    return result
+  end
+end
+
 module OpenURI
   def self.without_ssl_verification
     old = ::OpenSSL::SSL::VERIFY_PEER

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/helpers.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/helpers.rb?rev=1091416&r1=1091415&r2=1091416&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/helpers.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/helpers.rb Tue Apr 12 13:56:10 2011
@@ -20,14 +20,4 @@ require 'deltacloud/helpers/application_
 require 'deltacloud/helpers/conversion_helper'
 require 'deltacloud/helpers/hardware_profiles_helper'
 
-module Kernel
-  def suppress_warnings
-    original_verbosity = $VERBOSE
-    $VERBOSE = nil
-    result = yield
-    $VERBOSE = original_verbosity
-    return result
-  end
-end
-
 helpers ApplicationHelper, ConversionHelper, HardwareProfilesHelper



Mime
View raw message