class Fluorite::Runner::ProcessRunner

Defined in:

fluorite/runner/process_runner.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(args : Array(String), total_duration : Time::Span | Nil = nil) #

Instance Method Detail

def args : Array(String) #

def command_string : String #

def error_log : IO::Memory #

def exit_status : Process::Status | Nil #

def kill : Nil #

Gracefully terminates or kills the process


def latest_progress : Progress #

def on_error(&block : Exception -> Nil) : self #

def on_finish(&block : Process::Status -> Nil) : self #

def on_log(&block : String -> Nil) : self #

def on_progress(&block : Progress -> Nil) : self #

def on_start(&block : String -> Nil) : self #

def run : Process::Status #

Executes the command synchronously, blocking until finished


def run_async : self #

Launches execution in background fibers


def running? : Bool #

def total_duration : Time::Span | Nil #

def wait : Process::Status #

Waits for the running process to complete