summaryrefslogtreecommitdiffstats
path: root/lib/puppet/application.rb
Commit message (Collapse)AuthorAgeFilesLines
* Feature #2276 Single Executable: usage messageJesse Wolfe2010-02-171-1/+1
| | | | | | The usage message should show the single-executable variant of commands. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
* feature #2276 Single Executable: optparser should get CommandLine#args ↵Jesse Wolfe2010-02-171-19/+24
| | | | | | instead of ARGV Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
* Feature #2276 Single Executable: Pass a commandline object to the applicationJesse Wolfe2010-02-171-2/+3
| | | | | | Refactor so that the command line options only get parsed once Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
* Refactor #3706 Reify eigenclasses of ApplicationsJesse Wolfe2010-02-171-114/+82
| | | | | | | | | | The Puppet::Application DSL is complicated by the fact that it operates on eigenclasses of instances of Puppet::Application, rather than subclassing it. This patch reifies the eigenclasses as subclasses of Puppet::Application. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
* feature #2276 Single Executable: subcommand methodJesse Wolfe2010-02-171-1/+1
| | | | | | Extract the logic to determine the subcommand name into a method. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
* feature #2276 Single Executable: rdoc paths on ubuntuJesse Wolfe2010-02-171-2/+2
| | | | | | | on ubuntu, --help was failing to find the path to the old executables, which still contain the rdoc help message Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
* Fix 2239 (step two): introduce Puppet::Application.controlled_run method to ↵Ethan Rowe2010-02-171-0/+12
| | | | provide simple status-restricted execution of a passed in block; this can replace the process status checks and properly handle delayed restart behavior for Puppet::Agent.
* Fix 2239 (step one): introduce global settings represeting application run ↵Ethan Rowe2010-02-171-0/+64
| | | | | | | | state with methods for setting the state and appropriately-named predicates for querying state, all in the Puppet::Application class itself. To be used by Puppet::Daemon and Puppet::Agent and Puppet::Transaction for better response to TERM, INT, HUP.
* Find both bin and sbin usage docs, fail gracefullyRein Henrichs2010-02-171-3/+6
|
* Initial puppet single executableRein Henrichs2010-02-171-2/+12
| | | | | | | - puppet executable delegates to available applications and provides basic usage information - Puppet::Application.applications accessor added for access by main executable - Ugly hack to make RDoc::usage work
* Exiting from app failures instead of raisingLuke Kanies2009-07-311-5/+16
| | | | | | | This protects the user from seeing stack traces in normal situations. It makes sense here because this is explicitly for user interactions. Signed-off-by: Luke Kanies <luke@madstop.com>
* Removed extra whitespace from end of linesIan Taylor2009-06-061-11/+11
|
* Refactoring how the Settings file is parsedLuke Kanies2009-02-191-2/+2
| | | | | | | | | | | | | The goal of this refactor was to use a cached attribute for the LoadedFile instance we use to monitor whether the file needs reparsing. We were getting tests that affected later tests because they were holding on to LoadedFile stubs, somehow. The other main change here is that the Settings#parse method now knows how to look up its own file path. Signed-off-by: Luke Kanies <luke@madstop.com>
* Move --version handling to Puppet::ApplicationBrice Figureau2009-02-161-6/+16
| | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Introducing the Application ControllerBrice Figureau2009-02-161-0/+292
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>