Class: Puppet::Application::Certificate

Inherits:
IndirectionBase show all
Defined in:
lib/vendor/puppet/application/certificate.rb

Constant Summary

Constants inherited from Puppet::Application

DOCPATTERN

Constants included from Util

Util::AbsolutePathPosix, Util::AbsolutePathWindows

Instance Attribute Summary

Attributes inherited from FaceBase

#action, #arguments, #face, #render_as, #type

Attributes inherited from Puppet::Application

#command_line, #options

Instance Method Summary collapse

Methods inherited from FaceBase

#find_application_argument, #find_global_settings_argument, #main, #parse_options, #preinit, #render

Methods inherited from Puppet::Application

[], banner, clear!, clear?, #configure_indirector_routes, controlled_run, exit, find, #handlearg, #help, #initialize, interrupted?, #main, #name, option, option_parser_commands, #parse_options, #preinit, restart!, restart_requested?, #run, #run_command, run_mode, #set_run_mode, #setup_logs, should_not_parse_config, should_parse_config, #should_parse_config?, should_parse_config?, stop!, stop_requested?

Methods included from Util

absolute_path?, activerecord_version, benchmark, binread, chuser, classproxy, #execfail, #execpipe, execute, execute_posix, execute_windows, logmethods, memory, path_to_uri, proxy, replace_file, safe_posix_fork, symbolize, symbolizehash, symbolizehash!, synchronize_on, thinmark, #threadlock, uri_to_path, wait_for_output, which, withumask

Methods included from Util::POSIX

#get_posix_field, #gid, #idfield, #methodbyid, #methodbyname, #search_posix_field, #uid

Constructor Details

This class inherits a constructor from Puppet::Application

Instance Method Details

#setupObject



4
5
6
7
8
9
10
11
12
# File 'lib/vendor/puppet/application/certificate.rb', line 4

def setup
  location = Puppet::SSL::Host.ca_location
  if location == :local && !Puppet::SSL::CertificateAuthority.ca?
    self.class.run_mode("master")
    self.set_run_mode self.class.run_mode
  end

  super
end