Class PuppetLint::CheckPlugin
In: lib/puppet-lint/plugin.rb
Parent: Object

Methods

Included Modules

PuppetLint::Plugin

Attributes

checks  [R] 
problems  [R] 

Public Class methods

Public Instance methods

    notify(kind, message_hash)    #=> nil

Adds the message to the problems array. The kind gets added to the message_hash by setting the key :kind. Typically, the message_hash should contain following keys:

message:which contains a string value describing the problem
linenumber:which contains the line number on which the problem occurs.

Besides the :kind value that is being set, some other key/values are also added. Typically, this is

check:which contains the name of the check that is being executed.
linenumber:which defaults to 0 if the message does not already contain one.
    notify :warning, :message => "Something happened", :linenumber => 4
    => {:kind=>:warning, :message=>"Something happened", :linenumber=>4, :check=>'unknown'}

[Validate]