HooksService class

Loads and runs project hooks declared in udara.yaml:

hooks:
  after_branding:
    - ./scripts/firebase_configure.sh
  after_build: ./scripts/upload.sh

Each command runs through the system shell in the project root, with output streamed live. A non-zero exit stops the run (cleanup still runs).

Constructors

HooksService(String projectDir)

Properties

configFile → File
no setter
hashCode → int
The hash code for this object.
no setterinherited
projectDir → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

load() → Map<HookPoint, List<String>>
Parses udara.yaml. Returns an empty map when the file is absent and throws a BuildException for malformed content or unknown hook names, so a typo fails fast instead of being silently ignored.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(HookPoint point, HookContext context) → Future<void>
Runs every command registered for point, in order.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

configFileName → const String