You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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":)"elseputs":("end