| Class | Puppet::Application |
| In: |
lib/puppet/application.rb
|
| Parent: | Object |
| DOCPATTERN | = | File.expand_path(File.dirname(__FILE__) + "/util/command_line/*" ) |
| command_line | [R] | |
| options | [R] | |
| run_status | [RW] |
Indicates that Puppet::Application believes that it‘s in usual running run_mode (no stop/restart request currently active).
Only executes the given block if the run status of Puppet::Application is clear (no restarts, stops, etc. requested). Upon block execution, checks the run status again; if a restart has been requested during the block‘s execution, then controlled_run will send a new HUP signal to the current process. Thus, long-running background processes can potentially finish their work before a restart.
Indicates that one of stop! or start! was invoked on Puppet::Application, and some kind of process shutdown/short-circuit may be necessary.
Indicates that Puppet::Application.restart! has been invoked and components should do what is necessary to facilitate a restart.
Indicates that Puppet::Application.stop! has been invoked and components should do what is necessary for a clean stop.
WARNING: This is a totally scary, frightening, and nasty internal API. We strongly advise that you do not use this, and if you insist, we will politely allow you to keep both pieces of your broken code.
We plan to provide a supported, long-term API to deliver this in a way that you can use. Please make sure that you let us know if you do require this, and this message is still present in the code. —daniel 2011-02-03