class Git::CommandLineResult
@api public
This object stores the Git command executed and its status, stdout, and stderr.
The result of running a git command
def initialize(git_cmd, status, stdout, stderr)
-
stderr
(String
) -- the processed stderr of the process -
stdout
(String
) -- the processed stdout of the process -
status
(ProcessExecuter::ResultWithCapture
) -- the status of the process -
git_cmd
(Array
) -- the git command that was executed
def initialize(git_cmd, status, stdout, stderr) @git_cmd = git_cmd @status = status @stdout = stdout @stderr = stderr # ProcessExecuter::ResultWithCapture changed the timeout? method to timed_out? # in version 4.x. This is a compatibility layer to maintain the old method name # for backward compatibility. # status.define_singleton_method(:timeout?) { timed_out? } end