Sha256: f1ea11978c0862b4cf53920452babf2eb3b382f1b4a26d208cdd0c5603fffce3
Contents?: true
Size: 414 Bytes
Versions: 11
Compression:
Stored size: 414 Bytes
Contents
require 'puppet/provider/confine' class Puppet::Provider::Confine::False < Puppet::Provider::Confine def self.summarize(confines) confines.inject(0) { |count, confine| count + confine.summary } end def pass?(value) ! value end def message(value) "true value when expecting false" end def summary result.find_all { |v| v == false }.length end end
Version data entries
11 entries across 11 versions & 1 rubygems