Sha256: 2bc60ececd88669d824e879074a4691e59d91af91257609c2f06b95f538436a6

Contents?: true

Size: 359 Bytes

Versions: 20

Compression:

Stored size: 359 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

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/settings/terminus_setting.rb
puppet-8.3.0-x86-mingw32 lib/puppet/settings/terminus_setting.rb
puppet-8.3.0-x64-mingw32 lib/puppet/settings/terminus_setting.rb
puppet-8.3.0-universal-darwin lib/puppet/settings/terminus_setting.rb
puppet-8.3.1 lib/puppet/settings/terminus_setting.rb
puppet-8.3.1-x86-mingw32 lib/puppet/settings/terminus_setting.rb
puppet-8.3.1-x64-mingw32 lib/puppet/settings/terminus_setting.rb
puppet-8.3.1-universal-darwin lib/puppet/settings/terminus_setting.rb
puppet-8.2.0 lib/puppet/settings/terminus_setting.rb
puppet-8.2.0-x86-mingw32 lib/puppet/settings/terminus_setting.rb
puppet-8.2.0-x64-mingw32 lib/puppet/settings/terminus_setting.rb
puppet-8.2.0-universal-darwin lib/puppet/settings/terminus_setting.rb
puppet-8.1.0 lib/puppet/settings/terminus_setting.rb
puppet-8.1.0-x86-mingw32 lib/puppet/settings/terminus_setting.rb
puppet-8.1.0-x64-mingw32 lib/puppet/settings/terminus_setting.rb
puppet-8.1.0-universal-darwin lib/puppet/settings/terminus_setting.rb
puppet-8.0.1 lib/puppet/settings/terminus_setting.rb
puppet-8.0.1-x86-mingw32 lib/puppet/settings/terminus_setting.rb
puppet-8.0.1-x64-mingw32 lib/puppet/settings/terminus_setting.rb
puppet-8.0.1-universal-darwin lib/puppet/settings/terminus_setting.rb