stager/lib/vcap/stager/process_runner.rb
# Runs the supplied command and logs the exit status, stdout, and stderr.
#
# @see VCAP::Stager::ProcessRunner#run for a description of arguments and
#      return value.
Runs the supplied command and logs the exit status, stdout, and stderr.
Runs the supplied command and logs the exit status stdout and stderr .
def run_logged(cmd, opts = {})
    ret = run(cmd, opts)
    exitstatus = ret[:status].exitstatus
    @logger.debug("Command #{cmd} exited with status #{exitstatus}")
    @logger.debug("stdout: #{ret[:stdout]}")
    @logger.debug("stderr: #{ret[:stderr]}")
    ret
  end
def run_logged ( cmd , opts = { } ) ret = run ( cmd , opts ) exitstatus = ret [ :status ] . exitstatus @logger . debug ( "Command #{cmd} exited with status #{exitstatus}" ) @logger . debug ( "stdout: #{ret[:stdout]}" ) @logger . debug ( "stderr: #{ret[:stderr]}" ) ret end
Runs the supplied command and logs the exit status, stdout, and stderr.
Runs the supplied command and logs the exit status stdout and stderr .
cmd
opts
see
:Stager::ProcessRunner#run for a description of arguments and return value.
: Stager :: ProcessRunner#run for a description of arguments and return value .