Sha256: 4731e22336d0597e37ec8a36eb27f70c1f4ffca6c3ff62605de0bda918bcf710

Contents?: true

Size: 575 Bytes

Versions: 32

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

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

32 entries across 32 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.10.0-x86-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.10.0-x64-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.10.0-universal-darwin lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.9.0 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.9.0-x86-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.9.0-x64-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.9.0-universal-darwin lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.8.1 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.8.1-x86-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.8.1-x64-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.8.1-universal-darwin lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.7.0 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.7.0-x86-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.7.0-x64-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.7.0-universal-darwin lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.6.0 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.6.0-x86-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.6.0-x64-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-8.6.0-universal-darwin lib/puppet/settings/certificate_revocation_setting.rb