summaryrefslogtreecommitdiffstats
path: root/lib/facter/application.rb
Commit message (Collapse)AuthorAgeFilesLines
* (#7670) Stop preloading all facts in the applicationNick Lewis2011-05-311-4/+3
| | | | | | | | | | If a requested fact isn't found in the same location as its name, we want to load all of the facts to find it. However, to simplify that, we were previously just preloading all the facts every time. Because requesting a fact now implicitly loads all facts if necessary, we can rely on that, providing results much more quickly in the case where facts do match their filenames. Reviewed-By: Jacob Helwig <jacob@puppetlabs.com>
* (#7039) Pre-load all facts when requesting a single factJacob Helwig2011-04-121-6/+8
| | | | | | | | Since multiple facts can be defined in a single file and we have no way of knowing which "additional" facts are defined in which files, we pre-load all facts when we're looking for specific one. Paired-with: Max Martin <max@puppetlabs.com>
* Merge branch 'tickets/next/5031'James Turnbull2011-03-071-1/+1
|\
| * (#5031) Remove redundant puts from RDoc.usagePaul Berry2010-10-181-1/+1
| | | | | | | | | | | | | | RDoc.usage prints the usage string. As a result, `puts RDoc.usage` is redundant and unnecessary. See http://ruby-doc.org/core/classes/RDoc.html#M004706.
* | JSON support. Works in 1.9.1. Warnings in 1.9.2. LoadError on 1.8.7 for some ↵John E. Vincent2010-11-041-0/+13
|/ | | | reason
* maint: Fix merge errorRein Henrichs2010-10-071-2/+0
|
* Merge branch 'ticket/master/4552' into nextRein Henrichs2010-10-051-1/+7
|\ | | | | | | | | | | Conflicts: bin/facter lib/facter/application.rb
| * [#4552] Apply patch from Dean WilsonRein Henrichs2010-10-041-1/+1
| |
| * (#4558) Fail with message on --help errorsRein Henrichs2010-10-041-1/+6
| | | | | | | | | | | | | | | | If rdoc/usage fails to load, tell the user why and fail. If another failure happens, report the error message and fail. Paired With: Jacob Helwig Signed-off-by: Rein Henrichs <rein@puppetlabs.com>
| * [#4558] Refactor facter binary using optparseRein Henrichs2010-10-041-0/+99
| | | | | | | Simplify the binary by moving all application specific code into a new Facter::Application module. This module is then refactored to use OptionParser and to simplify invocation logic, while maintaining existing behavior.
* [#4563] Add a --trace option to the binaryRein Henrichs2010-10-041-2/+7
|
* [#4558] Refactor facter binary using optparseRein Henrichs2010-10-041-0/+99
Simplify the binary by moving all application specific code into a new Facter::Application module. This module is then refactored to use OptionParser and to simplify invocation logic, while maintaining existing behavior.