Class: Net::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/maestro/cloud/aws.rb

Overview

disable “warning: peer certificate won’t be verified in this SSL session” messages

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ HTTP

Returns a new instance of HTTP.



9
10
11
12
13
# File 'lib/maestro/cloud/aws.rb', line 9

def initialize(*args)
  old_initialize(*args)
  @ssl_context = OpenSSL::SSL::SSLContext.new
  @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
end

Instance Method Details

#old_initializeObject



8
# File 'lib/maestro/cloud/aws.rb', line 8

alias_method :old_initialize, :initialize