lib/puppet/pops/validation.rb
# The somewhat (machine) unusable format in current use by puppet.
# have to be used here for backwards compatibility.
The somewhat (machine) unusable format in current use by puppet.
have to be used here for backwards compatibility.
The somewhat ( machine ) unusable format in current use by puppet . have to be used here for backwards compatibility .
def format_location diagnostic
      file = diagnostic.file
      line = diagnostic.source_pos.line
      pos = diagnostic.source_pos.pos
      if file && line && pos
        " at #{file}:#{line}:#{pos}"
      elsif file and line
        " at #{file}:#{line}"
      elsif line && pos
        " at line #{line}:#{pos}"
      elsif line
        " at line #{line}"
      elsif file
        " in #{file}"
      else
        ""
      end
    end
def format_location diagnostic file = diagnostic . file line = diagnostic . source_pos . line pos = diagnostic . source_pos . pos if file && line && pos " at #{file}:#{line}:#{pos}" elsif file and line " at #{file}:#{line}" elsif line && pos " at line #{line}:#{pos}" elsif line " at line #{line}" elsif file " in #{file}" else "" end end
The somewhat (machine) unusable format in current use by puppet.
The somewhat ( machine ) unusable format in current use by puppet .
diagnostic
<not_specific>