Class Facter::Util::Confine
In: lib/facter/util/confine.rb
Parent: Object

Methods

new   to_s   true?  

Included Modules

Facter::Util::Values

Attributes

fact  [RW] 
values  [RW] 

Public Class methods

Add the restriction. Requires the fact name, an operator, and the value we‘re comparing to.

@param fact [Symbol] Name of the fact @param values [Array] One or more values to match against.

  They can be any type that provides a === method.

@param block [Proc] Alternatively a block can be supplied as a check. The fact

  value will be passed as the argument to the block.  If the block returns
  true then the fact will be enabled, otherwise it will be disabled.

Public Instance methods

Evaluate the fact, returning true or false. if we have a block paramter then we only evaluate that instead

[Validate]