| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
reason
|
| |
|
|\
| |
| |
| |
| |
| | |
Conflicts:
bin/facter
lib/facter/application.rb
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
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.
|