class Puppet::Parser::Compiler::CatalogValidator

Constants

FINAL
PRE_FINISH

Attributes

catalog[R]

Public Class Methods

new(catalog) click to toggle source

@param catalog [Puppet::Resource::Catalog] The catalog to validate

   # File lib/puppet/parser/compiler/catalog_validator.rb
21 def initialize(catalog)
22   @catalog = catalog
23 end
validation_stage?(stage) click to toggle source

Returns true if the validator should run at the given stage. The default implementation will only run at stage `FINAL`

@param stage [Symbol] One of the stage constants defined in this class @return [Boolean] true if the validator should run at the given stage

   # File lib/puppet/parser/compiler/catalog_validator.rb
14 def self.validation_stage?(stage)
15   FINAL.equal?(stage)
16 end

Public Instance Methods

validate() click to toggle source

Validate some aspect of the catalog and raise a `CatalogValidationError` on failure

   # File lib/puppet/parser/compiler/catalog_validator.rb
26 def validate
27 end