Current Path : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings/ |
Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings/array_setting.rb |
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