module OpenURI

Public Class Methods

without_ssl_verification() { || ... } click to toggle source
# File lib/deltacloud/drivers/gogrid/gogrid_client.rb, line 33
def self.without_ssl_verification
  old = ::OpenSSL::SSL::VERIFY_PEER
  suppress_warnings { ::OpenSSL::SSL.const_set :VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE }
  yield
ensure
  suppress_warnings { ::OpenSSL::SSL.const_set :VERIFY_PEER, old }
end