Class: Puppet::Application::Describe
- Inherits:
-
Puppet::Application
- Object
- Puppet::Application
- Puppet::Application::Describe
- Defined in:
- lib/puppet/application/describe.rb
Constant Summary
Constants inherited from Puppet::Application
Instance Attribute Summary
Attributes inherited from Puppet::Application
Instance Method Summary collapse
Methods inherited from Puppet::Application
[], banner, clear!, clear?, controlled_run, exit, find, #handlearg, #help, #initialize, interrupted?, #name, option, option_parser_commands, #parse_options, restart!, restart_requested?, #run, #run_command, run_mode, #set_run_mode, should_not_parse_config, should_parse_config, #should_parse_config?, should_parse_config?, stop!, stop_requested?
Methods included from Util
activerecord_version, benchmark, chuser, classproxy, #execfail, #execpipe, execute, logmethods, memory, proxy, recmkdir, secure_open, symbolize, symbolizehash, symbolizehash!, synchronize_on, thinmark, #threadlock, 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
#main ⇒ Object
187 188 189 190 191 192 193 194 195 |
# File 'lib/puppet/application/describe.rb', line 187 def main doc = TypeDoc.new if [:list] doc.list_types else [:types].each { |name| doc.format_type(name, ) } end end |
#preinit ⇒ Object
183 184 185 |
# File 'lib/puppet/application/describe.rb', line 183 def preinit [:parameters] = true end |
#setup ⇒ Object
197 198 199 200 201 |
# File 'lib/puppet/application/describe.rb', line 197 def setup [:types] = command_line.args.dup handle_help(nil) unless [:list] || [:types].size > 0 $stderr.puts "Warning: ignoring types when listing all types" if [:list] && [:types].size > 0 end |