class Puppet::Application::HttpMaster

Public Instance Methods

main() click to toggle source
# File lib/puppet/application/http_master.rb, line 11
def main
  require 'etc'

  if Puppet.features.root?
    begin
      Puppet::Util.chuser
    rescue => detail
      Puppet.log_exception(detail, "Could not change user to #{Puppet[:user]}: #{detail}")
      exit(39)
    end
  end

  if options[:rack]
    start_rack_master
  else
    start_webrick_master
  end
end
setup_ssl() click to toggle source
# File lib/puppet/application/http_master.rb, line 6
def setup_ssl
  # Logging is necessary to make user aware of they are currently using an unsafe transmission.
  Puppet.debug "Puppet HTTPMaster won't setup SSL environment."
end
start_webrick_master() click to toggle source
Calls superclass method
# File lib/puppet/application/http_master.rb, line 30
def start_webrick_master
  require 'puppet/patch/webrick'
  super
end