Method: Puppet::HTTP::Service::Ca#initialize

Defined in:
lib/puppet/http/service/ca.rb

#initialize(client, session, server, port) ⇒ Ca

Use ‘Puppet::HTTP::Session.route_to(:ca)` to create or get an instance of this class.

Parameters:

  • client (Puppet::HTTP::Client)
  • session (Puppet::HTTP::Session)
  • server (String)

    (‘Puppet`) If an explicit server is given, create a service using that server. If server is nil, the default value is used to create the service.

  • port (Integer)

    (‘Puppet`) If an explicit port is given, create a service using that port. If port is nil, the default value is used to create the service.



24
25
26
27
# File 'lib/puppet/http/service/ca.rb', line 24

def initialize(client, session, server, port)
  url = build_url(API, server || Puppet[:ca_server], port || Puppet[:ca_port])
  super(client, session, url)
end