class

Hwaro::Core::Lifecycle::Manager

Inherits Reference < Object

Constructors

Instance methods

has_hooks?(point : HookPoint) : Bool
Source
hook_count
Source
hooks_at(point : HookPoint) : Array(RegisteredHook)
Source
on(point : HookPoint, priority : Int32 = 0, name : String = "anonymous", &block : BuildContext -> HookResult)

Register a hook at a specific point

Source
register(hookable : Hookable)

Register a Hookable module

Source
run_phase(phase : Phase, context : BuildContext, &) : HookResult

Execute a phase with before/after hooks

Source
trigger(point : HookPoint, context : BuildContext) : HookResult

Trigger all hooks at a specific point. Only Abort (or a raised HwaroError) terminates the build.

Source