Sha256: a3954befe916b50f1c727eccda0419e0f98a0c58ec2e112e20d8bd6b24a5162a

Contents?: true

Size: 333 Bytes

Versions: 515

Compression:

Stored size: 333 Bytes

Contents

class Puppet::Settings::ArraySetting < Puppet::Settings::BaseSetting

  def type
    :array
  end

  def munge(value)
    case value
    when String
      value.split(/\s*,\s*/)
    when Array
      value
    else
      raise ArgumentError, _("Expected an Array or String, got a %{klass}") % { klass: value.class }
    end
  end
end

Version data entries

515 entries across 515 versions & 2 rubygems

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