CHips L MINI SHELL

CHips L pro

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

Copyright 2K16 - 2K18 Indonesian Hacker Rulez