class Gouteur::Shell::Result
return value object of Shell
methods
Attributes
exitstatus[R]
stderr[R]
stdout[R]
Public Class Methods
new(args:, pwd:, stdout:, stderr:, status:)
click to toggle source
# File lib/gouteur/shell.rb, line 31 def initialize(args:, pwd:, stdout:, stderr:, status:) @args = args @pwd = pwd @stdout = stdout @stderr = stderr @exitstatus = status.exitstatus end
Public Instance Methods
full_error()
click to toggle source
# File lib/gouteur/shell.rb, line 43 def full_error return nil if success? Message.shell_error(args: @args, pwd: @pwd, stderr: stderr) end
success?()
click to toggle source
# File lib/gouteur/shell.rb, line 39 def success? exitstatus.zero? end