class Buff::ShellOut::Response
Attributes
exitstatus[R]
@return [Fixnum]
stderr[R]
@return [String]
stdout[R]
@return [String]
Public Class Methods
new(exitstatus, stdout, stderr)
click to toggle source
@param [Fixnum] exitstatus @param [String] stdout @param [String] stderr
# File lib/buff/shell_out/response.rb, line 14 def initialize(exitstatus, stdout, stderr) @exitstatus = exitstatus @stdout = stdout @stderr = stderr end
Public Instance Methods
error?()
click to toggle source
# File lib/buff/shell_out/response.rb, line 24 def error? !success? end
Also aliased as: failure?
success?()
click to toggle source
# File lib/buff/shell_out/response.rb, line 20 def success? exitstatus == 0 end