Class: Puppet::HTTP::Resolver::Settings Private

Inherits:
Puppet::HTTP::Resolver show all
Defined in:
lib/puppet/http/resolver/settings.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Resolve a service using settings. This is the default resolver if none of the other resolvers find a functional connection.

Instance Method Summary collapse

Methods inherited from Puppet::HTTP::Resolver

#check_connection?, #initialize

Constructor Details

This class inherits a constructor from Puppet::HTTP::Resolver

Instance Method Details

#resolve(session, name, ssl_context: nil, error_handler: nil) ⇒ Puppet::HTTP::Service

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Resolve a service using the default server and port settings for this service.


22
23
24
25
# File 'lib/puppet/http/resolver/settings.rb', line 22

def resolve(session, name, ssl_context: nil, error_handler: nil)
  service = Puppet::HTTP::Service.create_service(@client, session, name)
  check_connection?(session, service, ssl_context: ssl_context, error_handler: error_handler) ? service : nil
end