Class: Puppet::Parser::Compiler::CatalogValidator
- Defined in:
- lib/puppet/parser/compiler/catalog_validator.rb
Direct Known Subclasses
EnvironmentRelationshipValidator, RelationshipValidator, SiteValidator
Defined Under Namespace
Classes: EnvironmentRelationshipValidator, RelationshipValidator, SiteValidator
Constant Summary collapse
- PRE_FINISH =
:pre_finish
- FINAL =
:final
Instance Attribute Summary collapse
-
#catalog ⇒ Object
readonly
Returns the value of attribute catalog.
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.
21 22 23 |
# File 'lib/puppet/parser/compiler/catalog_validator.rb', line 21 def initialize(catalog) @catalog = catalog end |
Instance Attribute Details
#catalog ⇒ Object (readonly)
Returns the value of attribute catalog.
18 19 20 |
# File 'lib/puppet/parser/compiler/catalog_validator.rb', line 18 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`
14 15 16 |
# File 'lib/puppet/parser/compiler/catalog_validator.rb', line 14 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
26 27 |
# File 'lib/puppet/parser/compiler/catalog_validator.rb', line 26 def validate end |