-
Notifications
You must be signed in to change notification settings - Fork 1
Accessing Processes
mosop edited this page Mar 29, 2017
·
10 revisions
Command#run, FiberFunction#run and ProcessFunction#run return a Run::AsProcess instance. And CommandGroup#run returns a Run::ProcessGroup instance. These instances are used for accessing running processes.
For example, if you want to test if a command is successfully terminated, use #success? method.
process = Run::Command.new("try-something-command").run
if process.success?
puts ":)"
else
puts ":("
end
For more detail, see API Documentation.