Class Facter::Util::Loader
In: lib/facter/util/loader.rb
Parent: Object

Load facts on demand.

Methods

load   load_all   new   search_path  

Public Class methods

Public Instance methods

Load all resolutions for a single fact.

@api public @param name [Symbol]

Load all facts from all directories.

@api public

List directories to search for fact files.

Search paths are gathered from the following sources:

  1. $LOAD_PATH entries are expanded to absolute paths
  2. ENV[‘FACTERLIB’] is split and used verbatim
  3. Entries from Facter.search_path are used verbatim

A warning will be generated for paths in Facter.search_path that are not absolute directories.

@api public @return [Array<String>]

[Validate]