Class: Net::HTTP

Inherits:
Object show all
Defined in:
lib/puppet/network/client.rb

Overview

Some versions of ruby don’t have this method defined, which basically causes us to never use ssl. Yay.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#enable_post_connection_checkObject

JJM: This is a “backport” of sorts to older ruby versions which do not have this accessor. See #896 for more information.



26
27
28
# File 'lib/puppet/network/client.rb', line 26

def enable_post_connection_check
  @enable_post_connection_check
end

Instance Method Details

#use_ssl?Boolean

Returns:

  • (Boolean)


16
17
18
19
20
21
22
# File 'lib/puppet/network/client.rb', line 16

def use_ssl?
  if defined?(@use_ssl)
    @use_ssl
  else
    false
  end
end