Class | Facter::Util::Confine |
In: |
lib/facter/util/confine.rb
|
Parent: | Object |
fact | [RW] | |
values | [RW] |
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.