Class: Overcommit::Subprocess::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/overcommit/subprocess.rb

Overview

Encapsulates the result of a process.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#statusInteger (readonly)

exit status code returned by process


13
14
15
# File 'lib/overcommit/subprocess.rb', line 13

def status
  @status
end

#stderrString (readonly)

standard error stream output


13
14
15
# File 'lib/overcommit/subprocess.rb', line 13

def stderr
  @stderr
end

#stdoutString (readonly)

standard output stream output


13
14
15
# File 'lib/overcommit/subprocess.rb', line 13

def stdout
  @stdout
end

Instance Method Details

#success?Boolean


14
15
16
# File 'lib/overcommit/subprocess.rb', line 14

def success?
  status == 0
end