Sha256: 5afe4b1bef8a573f90cfbb491b6b64a3a239572e022ae222873f032e5a86e6ff

Contents?: true

Size: 530 Bytes

Versions: 379

Compression:

Stored size: 530 Bytes

Contents

require '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

379 entries across 379 versions & 2 rubygems

Version Path
puppet-5.5.22 lib/puppet/settings/certificate_revocation_setting.rb
puppet-5.5.22-x86-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-5.5.22-x64-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-5.5.22-universal-darwin lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.19.0 lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.19.0-x86-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.19.0-x64-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.19.0-universal-darwin lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.18.0 lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.18.0-x86-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.18.0-x64-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.18.0-universal-darwin lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.17.0 lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.17.0-x86-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.17.0-x64-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-6.17.0-universal-darwin lib/puppet/settings/certificate_revocation_setting.rb
puppet-5.5.21 lib/puppet/settings/certificate_revocation_setting.rb
puppet-5.5.21-x86-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-5.5.21-x64-mingw32 lib/puppet/settings/certificate_revocation_setting.rb
puppet-5.5.21-universal-darwin lib/puppet/settings/certificate_revocation_setting.rb