Config:...or::Hook(3)

πŸ“¦ version 1.0, in epel 9

Okay bestie, welcome to the Config::Generator::Hook manual πŸ’– β€” the terminal header is being extra with its truncated Config:...or::Hook(3) look, and it's part of User Contributed Perl Documentation. Let's get into it.

🌸 NAME 🌸

Config::Generator::Hook β€” Config::Generator hook support ✨

πŸ’– DESCRIPTION πŸ’–

This module makes it easier to manipulate the hooks β€” aka code references β€” that are used internally by the yacg command 🫢

The "check" hooks run (in module dependency order) after the high level configuration has been read (and partially validated) but before it has been used. These hooks usually do extra validation (the kind not performed by the schema based validation) and set default values πŸ’…

The "generate" hooks run after the final high level configuration validation. These hooks usually generate files, mainly with the help of the Config::Generator::File module πŸŽ€

Here's what the yacg command does, in order:

  1. read and partially validate the configuration
  2. run the "check" hooks
  3. perform the final configuration validation
  4. run the "generate" hooks
  5. cleanup (e.g. handle the "manifest" file)
Note: module dependencies are handled by Perl when it loads them, so the hooks will run in the correct order: the "check" hook of a given module will run after the "check" hooks of all the modules it depends on 🌈

✨ FUNCTIONS ✨

This module provides the following functions (none of them being exported by default) πŸ‘‘

  • register_hook("check"|"generate", CODE) β€” register the given "check" or "generate" hook πŸ’–
  • run_hooks("check"|"generate") β€” run all the previously registered "check" or "generate" hooks πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Lionel Cons <http://cern.ch/lionel.cons> πŸ¦‹

Copyright (C) CERN 2013-2016 🌸


And that's the whole vibe check, bestie: signing off with perl v5.32.1 energy, dated 2019-07-26, from the Config:...or::Hook(3) page πŸ’…βœ¨

πŸ“¦ where this page comes from