mache.deploy.hooks.HookRegistry.run_hook
- HookRegistry.run_hook(stage: str, context: DeployContext) None[source]
Run a hook stage if it is defined.
If a hook returns a mapping, it is merged into
context.runtime. After the hook finishes, a JSON snapshot of the context is written underdeploy_tmp/hooksto aid debugging.