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

Version Path
puppet-6.29.0 lib/puppet/confine/feature.rb
puppet-6.29.0-x86-mingw32 lib/puppet/confine/feature.rb
puppet-6.29.0-x64-mingw32 lib/puppet/confine/feature.rb
puppet-6.29.0-universal-darwin lib/puppet/confine/feature.rb
puppet-6.28.0 lib/puppet/confine/feature.rb
puppet-6.28.0-x86-mingw32 lib/puppet/confine/feature.rb
puppet-6.28.0-x64-mingw32 lib/puppet/confine/feature.rb
puppet-6.28.0-universal-darwin lib/puppet/confine/feature.rb
puppet-6.27.0 lib/puppet/confine/feature.rb
puppet-6.27.0-x86-mingw32 lib/puppet/confine/feature.rb
puppet-6.27.0-x64-mingw32 lib/puppet/confine/feature.rb
puppet-6.27.0-universal-darwin lib/puppet/confine/feature.rb
puppet-6.26.0 lib/puppet/confine/feature.rb
puppet-6.26.0-x86-mingw32 lib/puppet/confine/feature.rb
puppet-6.26.0-x64-mingw32 lib/puppet/confine/feature.rb
puppet-6.26.0-universal-darwin lib/puppet/confine/feature.rb
puppet-6.25.1 lib/puppet/confine/feature.rb
puppet-6.25.1-x86-mingw32 lib/puppet/confine/feature.rb
puppet-6.25.1-x64-mingw32 lib/puppet/confine/feature.rb
puppet-6.25.1-universal-darwin lib/puppet/confine/feature.rb