Class PuppetLint::Configuration
In: lib/puppet-lint/configuration.rb
Parent: Object

Public: A singleton class to store the running configuration of puppet-lint.

Methods

Public Class methods

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)

Public Instance methods

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: Get a list of all the defined checks.

Returns an Array of String check names.

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)

Internal: Access the internal storage for settings.

Returns a Hash containing all the settings.

[Validate]