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

Facter - Host Fact Detection and Reporting

Copyright 2011 Puppet Labs Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Methods

[]   add   clear   clear_messages   collection   debug   debugging   debugging?   each   loadfacts   method_missing   reset   search   search_path   show_time   timing   timing?   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.7'
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.

Return the version of the library.

Warn once.

[Validate]