Config::Generator::Hook - Config::Generator hook support
This module eases the manipulation of the hooks (i.e. code references) that are used internally by the yacg command.
The check hooks are executed (in module dependency order) after the high level configuration has been read (and partially validated) but before it has been used. These hooks usually perform additional validation (not performed by the schema based validation) and set default values.
check
The generate hooks are executed after the final high level configuration validation. These hooks usually generate files, mainly with the help of the Config::Generator::File module.
generate
Here is what the yacg command does, in order:
Note: module dependencies are handled by Perl when it loads them so the hooks will be executed in the correct order: the check hook of a given module will be executed after the check hooks of all the modules it depends on.
This module provides the following functions (none of them being exported by default):
register the given check or generate hook
run all the previously registered check or generate hooks
Lionel Cons http://cern.ch/lionel.cons
Copyright (C) CERN 2013-2016
To install Config::Generator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Generator
CPAN shell
perl -MCPAN -e shell install Config::Generator
For more information on module installation, please visit the detailed CPAN module installation guide.