class

Fluxion::Executor::ShellRunner

Inherits Reference < Object

Runs processes on behalf of the executors.

An interface rather than a concrete class so specs can drive every module executor without spawning anything, and so plan and dry-run can share the same code path as apply while never touching the host.

Instance methods

capture(argv : Array(String), timeout : Time::Span = 30.seconds) : ProcessResult

Convenience for probes and one-off checks.

Source
command_exists?(name : String) : Bool

Whether the command exists and can be executed at all.

Source
run(command : Command, &sink : String -> ) : ProcessResult

Runs command, yielding each output line as it arrives.

Source
run(command : Command) : ProcessResult
Source