Module: Cinnabar::Command::TaskArrExt

Defined in:
lib/cinnabar/cmd_runner.rb

Overview

The foundation of TaskArrRefin and TaskArrMixin

Examples:

simple


using Cinnabar::Command::ArrRefin
using Cinnabar::Command::TaskArrRefin
# OR: include Cinnabar::Command::TaskArrMixin

task = %w[ruby -e]
        .push('sleep 2; puts "OK"')
        .async_run

stdout, status = task.wait_with_output
status.success? #=> true

See Also:

Instance Method Summary collapse

Instance Method Details

#wait_with_outputObject



493
494
495
# File 'lib/cinnabar/cmd_runner.rb', line 493

def wait_with_output
  Cinnabar::Command.wait_with_output(*self)
end