Sha256: ce7eb36e92bb9aaefe413b9fc8a1048bd7be503619bf3c740940b23cf75ee206

Contents?: true

Size: 398 Bytes

Versions: 120

Compression:

Stored size: 398 Bytes

Contents

require_relative '../../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

120 entries across 120 versions & 1 rubygems

Version Path
puppet-7.34.0 lib/puppet/confine/feature.rb
puppet-7.34.0-x86-mingw32 lib/puppet/confine/feature.rb
puppet-7.34.0-x64-mingw32 lib/puppet/confine/feature.rb
puppet-7.34.0-universal-darwin lib/puppet/confine/feature.rb
puppet-7.33.0 lib/puppet/confine/feature.rb
puppet-7.33.0-x86-mingw32 lib/puppet/confine/feature.rb
puppet-7.33.0-x64-mingw32 lib/puppet/confine/feature.rb
puppet-7.33.0-universal-darwin lib/puppet/confine/feature.rb
puppet-7.32.1 lib/puppet/confine/feature.rb
puppet-7.32.1-x86-mingw32 lib/puppet/confine/feature.rb
puppet-7.32.1-x64-mingw32 lib/puppet/confine/feature.rb
puppet-7.32.1-universal-darwin lib/puppet/confine/feature.rb
puppet-7.31.0 lib/puppet/confine/feature.rb
puppet-7.31.0-x86-mingw32 lib/puppet/confine/feature.rb
puppet-7.31.0-x64-mingw32 lib/puppet/confine/feature.rb
puppet-7.31.0-universal-darwin lib/puppet/confine/feature.rb
puppet-7.30.0 lib/puppet/confine/feature.rb
puppet-7.30.0-x86-mingw32 lib/puppet/confine/feature.rb
puppet-7.30.0-x64-mingw32 lib/puppet/confine/feature.rb
puppet-7.30.0-universal-darwin lib/puppet/confine/feature.rb