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.