1Config::Generator::HookU(s3e)r Contributed Perl DocumentaCtoinofnig::Generator::Hook(3)
2
3
4
6 Config::Generator::Hook - Config::Generator hook support
7
9 This module eases the manipulation of the hooks (i.e. code references)
10 that are used internally by the yacg command.
11
12 The "check" hooks are executed (in module dependency order) after the
13 high level configuration has been read (and partially validated) but
14 before it has been used. These hooks usually perform additional
15 validation (not performed by the schema based validation) and set
16 default values.
17
18 The "generate" hooks are executed after the final high level
19 configuration validation. These hooks usually generate files, mainly
20 with the help of the Config::Generator::File module.
21
22 Here is what the yacg command does, in order:
23
24 1. read and partially validate the configuration
25 2. run the "check" hooks
26 3. perform the final configuration validation
27 4. run the "generate" hooks
28 5. cleanup (e.g. handle the "manifest" file)
29
30 Note: module dependencies are handled by Perl when it loads them so the
31 hooks will be executed in the correct order: the "check" hook of a
32 given module will be executed after the "check" hooks of all the
33 modules it depends on.
34
36 This module provides the following functions (none of them being
37 exported by default):
38
39 register_hook("check"|"generate", CODE)
40 register the given "check" or "generate" hook
41
42 run_hooks("check"|"generate")
43 run all the previously registered "check" or "generate" hooks
44
46 Lionel Cons <http://cern.ch/lionel.cons>
47
48 Copyright (C) CERN 2013-2016
49
50
51
52perl v5.28.0 2016-05-24 Config::Generator::Hook(3)