Class: Puppet::Parser::Compiler::CatalogValidator
- Defined in:
- lib/puppet/parser/compiler/catalog_validator.rb
Direct Known Subclasses
Defined Under Namespace
Classes: RelationshipValidator
Constant Summary collapse
- PRE_FINISH =
:pre_finish
- FINAL =
:final
Instance Attribute Summary collapse
- #catalog ⇒ Object readonly
Class Method Summary collapse
-
.validation_stage?(stage) ⇒ Boolean
Returns true if the validator should run at the given stage.
Instance Method Summary collapse
-
#initialize(catalog) ⇒ CatalogValidator
constructor
A new instance of CatalogValidator.
-
#validate ⇒ Object
Validate some aspect of the catalog and raise a ‘CatalogValidationError` on failure.
Constructor Details
#initialize(catalog) ⇒ CatalogValidator
Returns a new instance of CatalogValidator.
23 24 25 |
# File 'lib/puppet/parser/compiler/catalog_validator.rb', line 23 def initialize(catalog) @catalog = catalog end |
Instance Attribute Details
#catalog ⇒ Object (readonly)
20 21 22 |
# File 'lib/puppet/parser/compiler/catalog_validator.rb', line 20 def catalog @catalog end |
Class Method Details
.validation_stage?(stage) ⇒ Boolean
Returns true if the validator should run at the given stage. The default implementation will only run at stage ‘FINAL`
16 17 18 |
# File 'lib/puppet/parser/compiler/catalog_validator.rb', line 16 def self.validation_stage?(stage) FINAL.equal?(stage) end |
Instance Method Details
#validate ⇒ Object
Validate some aspect of the catalog and raise a ‘CatalogValidationError` on failure
28 29 |
# File 'lib/puppet/parser/compiler/catalog_validator.rb', line 28 def validate end |