lib/puppet/parameter.rb
# Munges the value to internal form.
# This implementation of `munge` provides exception handling around the specified munging of this parameter.
# @note This method should not be overridden. Use the DSL method {munge} to define a munging method
#   if required.
# @param value [Object] the DSL value to munge
# @return [Object] the munged (internal) value
#
Munges the value to internal form.
This implementation of `munge` provides exception handling around the specified munging of this parameter.
Munges the value to internal form . This implementation of ` munge ` provides exception handling around the specified munging of this parameter .
def munge(value)
    begin
      ret = unsafe_munge(value)
    rescue Puppet::Error => detail
      Puppet.debug "Reraising #{detail}"
      raise
    rescue => detail
      raise Puppet::DevError, "Munging failed for value #{value.inspect} in class #{self.name}: #{detail}", detail.backtrace
    end
    ret
  end
def munge ( value ) begin ret = unsafe_munge ( value ) rescue Puppet :: Error => detail Puppet . debug "Reraising #{detail}" raise rescue => detail raise Puppet :: DevError , "Munging failed for value #{value.inspect} in class #{self.name}: #{detail}" , detail . backtrace end ret end
Munges the value to internal form.
Munges the value to internal form .
the munged (internal) value
the munged ( internal ) value
Object
value
the DSL value to munge
the DSL value to munge
note
This method should not be overridden. Use the DSL method {munge} to define a munging method if required.
This method should not be overridden . Use the DSL method { munge } to define a munging method if required .