Sha256: ce7eb36e92bb9aaefe413b9fc8a1048bd7be503619bf3c740940b23cf75ee206
Contents?: true
Size: 398 Bytes
Versions: 120
Compression:
Stored size: 398 Bytes
Contents
require_relative '../../puppet/confine' class Puppet::Confine::Feature < Puppet::Confine def self.summarize(confines) confines.collect { |c| c.values }.flatten.uniq.find_all { |value| ! confines[0].pass?(value) } end # Is the named feature available? def pass?(value) Puppet.features.send(value.to_s + "?") end def message(value) "feature #{value} is missing" end end
Version data entries
120 entries across 120 versions & 1 rubygems