Sha256: c86e2d00664644de578771e55fd7ffbbdebbe07c53b98b27b46cde28cae862dd

Contents?: true

Size: 360 Bytes

Versions: 32

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

class Puppet::Settings::TerminusSetting < Puppet::Settings::BaseSetting
  def munge(value)
    case value
    when '', nil
      nil
    when String
      value.intern
    when Symbol
      value
    else
      raise Puppet::Settings::ValidationError, _("Invalid terminus setting: %{value}") % { value: value }
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

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