Sha256: cbed77d5564a9ba93f187ffd5243545ad51edca052d2c640cf743ff70dc59249

Contents?: true

Size: 545 Bytes

Versions: 120

Compression:

Stored size: 545 Bytes

Contents

require_relative '../../puppet/settings/base_setting'

class Puppet::Settings::CertificateRevocationSetting < Puppet::Settings::BaseSetting

  def type
    :certificate_revocation
  end

  def munge(value)
    case value
    when 'chain', 'true', TrueClass
      :chain
    when 'leaf'
      :leaf
    when 'false', FalseClass, NilClass
      false
    else
      raise Puppet::Settings::ValidationError, _("Invalid certificate revocation value %{value}: must be one of 'true', 'chain', 'leaf', or 'false'") % { value: value }
    end
  end
end

Version data entries

120 entries across 120 versions & 1 rubygems

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