Class | PuppetLint::Configuration |
In: |
lib/puppet-lint/configuration.rb
|
Parent: | Object |
Public: A singleton class to store the running configuration of puppet-lint.
Internal: Add helper methods for a new check to the PuppetLint::Configuration object.
check - The String name of the check.
Returns nothing.
Signature
<check>_enabled? disable_<check> enable_<check>
Public: Add an option to the PuppetLint::Configuration object from outside the class.
option - The String name of the option.
Returns nothing.
Signature
<option> <option>=(value)
Internal: Register a new check.
check - The String name of the check klass - The Class containing the check logic.
Returns nothing.
Internal: Add options to the PuppetLint::Configuration object from inside the class.
option - The String name of the option.
Returns nothing.
Signature
<option> <option>=(value)
Internal: Access the internal storage for check method blocks.
Returns a Hash containing all the check blocks.
Public: Clear the PuppetLint::Configuration storage and set some sane default values.
Returns nothing.
Public: Catch situations where options are being set for the first time and create the necessary methods to get & set the option in the future.
args - An Array of values to set the option to. method - The String name of the option. block - Unused.
Returns nothing.
Signature
<option>=(value)