Sha256: 5e51b735bbfc1a5c1bab6d0259ac4e25be350afc1bf6b4920a3c2405faa71394

Contents?: true

Size: 382 Bytes

Versions: 96

Compression:

Stored size: 382 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

96 entries across 96 versions & 4 rubygems

Version Path
puppet-3.0.2.rc1 lib/puppet/provider/confine/false.rb
puppet-parse-0.0.2 lib/vendor/puppet/provider/confine/false.rb
puppet-2.7.20 lib/puppet/provider/confine/false.rb
puppet-2.7.20.rc1 lib/puppet/provider/confine/false.rb
puppet-3.0.1 lib/puppet/provider/confine/false.rb
puppet-3.0.1.rc1 lib/puppet/provider/confine/false.rb
puppet-3.0.0 lib/puppet/provider/confine/false.rb
puppet-3.0.0.rc8 lib/puppet/provider/confine/false.rb
puppet-3.0.0.rc7 lib/puppet/provider/confine/false.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/provider/confine/false.rb
puppet-3.0.0.rc5 lib/puppet/provider/confine/false.rb
puppet-3.0.0.rc4 lib/puppet/provider/confine/false.rb
puppet-2.7.19 lib/puppet/provider/confine/false.rb
supply_drop-0.11.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/confine/false.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/provider/confine/false.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/confine/false.rb
puppet-2.7.18 lib/puppet/provider/confine/false.rb
puppet-2.6.17 lib/puppet/provider/confine/false.rb
supply_drop-0.10.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/confine/false.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/provider/confine/false.rb