Sha256: a80ff988e4649780290dd89d67a7bc872030279c829d7cf3a0c72c49cf1257ad
Contents?: true
Size: 383 Bytes
Versions: 633
Compression:
Stored size: 383 Bytes
Contents
require '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
633 entries across 633 versions & 3 rubygems