# File lib/r10k/util/subprocess/result.rb, line 32 def format(with_cmd = true) msg = [] if with_cmd msg << "Command: #{@cmd}" end if !@stdout.empty? msg << "Stdout:" msg << @stdout end if !@stderr.empty? msg << "Stderr:" msg << @stderr end msg << "Exit code: #{@exit_code}" msg.join("\n") end