HomePhorge

(#22288) Add post_compile_hook to Puppet::Parameter
74fbd0a1d99bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#22288) Add post_compile_hook to Puppet::Parameter

Without this commit there is no message sent to parameters (and
subclasses thereof) to indicate the catalog has completed compilation.
This is an issue for any parameter that is not based on
Puppet::Type::RelationshipMetaparam and needs to do something on
completion of catalog compilation. An example for such application would
be verifying some other resource made it into the catalog so that a
value may be used fro it for the current type.

This commit add an enhancement to the Puppet::Type#finish method. This
method will now list through all parameters, including
Puppet::Type::RelationshipMetaparam parameters, and call the
post_compile_hook method if implemented. This commit also adds an
abstract method comment to Puppet::Parameter.

Details

Provenance
Thomas Linkin <trlinkin@gmail.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUe7470e1a5158: (#22288) Add methods to access all parameters of a type
Branches
Unknown
Tags
Unknown

Event Timeline

Thomas Linkin <trlinkin@gmail.com> committed rPU74fbd0a1d99b: (#22288) Add post_compile_hook to Puppet::Parameter (authored by Thomas Linkin <trlinkin@gmail.com>).Aug 28 2013, 9:51 PM