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

Version Path
puppet-0.25.5 lib/puppet/provider/confine/false.rb
puppet-0.25.4 lib/puppet/provider/confine/false.rb
puppet-0.25.3 lib/puppet/provider/confine/false.rb
puppet-0.24.9 lib/puppet/provider/confine/false.rb
puppet-0.25.2 lib/puppet/provider/confine/false.rb
puppet-0.25.1 lib/puppet/provider/confine/false.rb
puppet-0.25.0 lib/puppet/provider/confine/false.rb
puppet-0.24.7 lib/puppet/provider/confine/false.rb
puppet-0.24.5 lib/puppet/provider/confine/false.rb
puppet-0.24.6 lib/puppet/provider/confine/false.rb
puppet-0.24.8 lib/puppet/provider/confine/false.rb