Class: Puppet::Settings::ServerListSetting
- Inherits:
-
ArraySetting
- Object
- BaseSetting
- ArraySetting
- Puppet::Settings::ServerListSetting
- Defined in:
- lib/puppet/settings/server_list_setting.rb
Instance Attribute Summary
Attributes inherited from BaseSetting
#call_hook, #default, #deprecated, #desc, #name, #section, #short
Instance Method Summary collapse
Methods inherited from BaseSetting
#allowed_on_commandline?, available_call_hook_values, #call_hook_on_define?, #call_hook_on_initialize?, #completely_deprecated?, #deprecated?, #getopt_args, #has_hook?, #hook=, #initialize, #inspect, #iscreated, #iscreated?, #optparse_args, #set_meta, #to_config, #value
Constructor Details
This class inherits a constructor from Puppet::Settings::BaseSetting
Instance Method Details
#munge(value) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/puppet/settings/server_list_setting.rb', line 7 def munge(value) servers = super servers.map! { |server| case server when String server.split(':') when Array server else raise ArgumentError, _("Expected an Array of String, got a %{klass}") % { klass: value.class } end } end |
#type ⇒ Object
3 4 5 |
# File 'lib/puppet/settings/server_list_setting.rb', line 3 def type :server_list end |