Module Facter
In: lib/facter/util/processor.rb
lib/facter/util/values.rb
lib/facter/util/monkey_patches.rb
lib/facter/version.rb
lib/facter/application.rb
lib/facter.rb

A util module for facter containing helper methods

Methods

[]   add   clear   clear_messages   collection   debug   debugging   debugging?   each   loadfacts   method_missing   reset   search   search_path   show_time   timing   timing?   version   version=   warn   warnonce  

Included Modules

Comparable Enumerable

Classes and Modules

Module Facter::Application
Module Facter::Manufacturer
Module Facter::Memory
Module Facter::NetMask
Module Facter::Util

Constants

FACTERVERSION = '1.6.18'
GREEN = ""
RESET = ""

Public Class methods

Return a fact object by name. If you use this, you still have to call ‘value’ on it to retrieve the actual value.

Add a resolution mechanism for a named fact. This does not distinguish between adding a new fact and adding a new way to resolve a fact.

Clear all facts. Mostly used for testing.

Clear all messages. Used only in testing. Can‘t add to self.clear because we don‘t want to warn multiple times for items that are warnonce‘d

module methods

Load all of the default facts, and then everything from disk.

Allow users to call fact names directly on the Facter class, either retrieving the value or comparing it to an existing value.

Remove them all.

Register a directory to search through.

Return our registered search directories.

show the timing information

Set timing on or off.

Warn once.

[Validate]