lib/cli_tools/system.rb
# Captures all outputs of all the #sh executed inside the block into +output+.
#
Captures all outputs of all the #sh executed inside the block into +output+.
Captures all outputs of all the #sh executed inside the block into + output + .
def sh_capture_output( output, &block )
  _sh_captured_output << output
  yield
ensure
  _sh_captured_output.delete output
end
def sh_capture_output ( output , & block ) _sh_captured_output << output yield ensure _sh_captured_output . delete output end
Captures all outputs of all the #sh executed inside the block into +output+.
Captures all outputs of all the #sh executed inside the block into + output + .
output
block