mache.deploy.hooks.HookRegistry

class mache.deploy.hooks.HookRegistry(file_path: str | None, entrypoints: dict[str, Callable[[DeployContext], Any]])[source]

Resolved hooks for a single deploy run.

__init__(file_path: str | None, entrypoints: dict[str, Callable[[DeployContext], Any]]) None

Methods

__init__(file_path, entrypoints)

run_hook(stage, context)

Run a hook stage if it is defined.

Attributes

file_path

entrypoints