Hwaro::Utils::CommandRunner
Inherits Reference / Object
Class methods
run(command : String, working_dir : String | Nil = nil, env : Hash(String, String) | Nil = nil) : Result
Execute a single command and return the result
run_all(commands : Array(String), working_dir : String | Nil = nil, label : String = "hook", env : Hash(String, String) | Nil = nil) : Bool
Execute multiple commands sequentially Returns true if all commands succeed, false otherwise
run_post_hooks(commands : Array(String), working_dir : String | Nil = nil, env : Hash(String, String) | Nil = nil) : Bool
Execute post-build hooks
run_pre_hooks(commands : Array(String), working_dir : String | Nil = nil, env : Hash(String, String) | Nil = nil) : Bool
Execute pre-build hooks