mache.deploy.hooks.HookRegistry
- class mache.deploy.hooks.HookRegistry(file_path: str | None, entrypoints: dict[str, Callable[[DeployContext], Any]], log_context: bool = False)[source]
Resolved hooks for a single deploy run.
- __init__(file_path: str | None, entrypoints: dict[str, Callable[[DeployContext], Any]], log_context: bool = False) None
Methods
__init__(file_path, entrypoints[, log_context])run_hook(stage, context)Run a hook stage if it is defined.
Attributes
log_contextfile_pathentrypoints