Class MCollective::Facts::Base
In: lib/mcollective/facts/base.rb
Parent: Object

A base class for fact providers, to make a new fully functional fact provider inherit from this and simply provide a self.get_facts method that returns a hash like:

 {"foo" => "bar",
  "bar" => "baz"}

Methods

Public Class methods

Registers new fact sources into the plugin manager

Public Instance methods

Plugins can override this to provide forced fact invalidation

Returns the value of a single fact

Returns all facts

Returns true if we know about a specific fact, false otherwise

[Validate]