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-parse-0.1.4 lib/vendor/puppet/provider/confine/false.rb
puppet-parse-0.1.3 lib/vendor/puppet/provider/confine/false.rb
puppet-parse-0.1.2 lib/vendor/puppet/provider/confine/false.rb
puppet-parse-0.1.1 lib/vendor/puppet/provider/confine/false.rb
puppet-2.7.26 lib/puppet/provider/confine/false.rb
puppet-2.7.25 lib/puppet/provider/confine/false.rb
puppet-2.7.24 lib/puppet/provider/confine/false.rb
puppet-3.3.2 lib/puppet/provider/confine/false.rb
puppet-3.3.1 lib/puppet/provider/confine/false.rb
puppet-3.3.1.rc3 lib/puppet/provider/confine/false.rb
puppet-3.3.1.rc2 lib/puppet/provider/confine/false.rb
puppet-3.3.1.rc1 lib/puppet/provider/confine/false.rb
puppet-3.3.0 lib/puppet/provider/confine/false.rb
puppet-3.3.0.rc3 lib/puppet/provider/confine/false.rb
puppet-3.3.0.rc2 lib/puppet/provider/confine/false.rb
puppet-3.2.4 lib/puppet/provider/confine/false.rb
puppet-2.7.23 lib/puppet/provider/confine/false.rb
puppet-3.2.3 lib/puppet/provider/confine/false.rb
puppet-3.2.3.rc1 lib/puppet/provider/confine/false.rb
puppet-3.2.2 lib/puppet/provider/confine/false.rb