class Hatchet::BashResult
Attributes
status[R]
stderr[R]
stdout[R]
Public Class Methods
new(stdout:, stderr:, status:, set_global_status: false)
click to toggle source
# File lib/hatchet/heroku_run.rb, line 7 def initialize(stdout:, stderr:, status:, set_global_status: false) @stdout = stdout @stderr = stderr @status = status.respond_to?(:exitstatus) ? status.exitstatus : status.to_i `exit #{@status}` if set_global_status end
Public Instance Methods
failed?()
click to toggle source
# File lib/hatchet/heroku_run.rb, line 19 def failed? !success? end
include?(value)
click to toggle source
Testing helper methods
# File lib/hatchet/heroku_run.rb, line 24 def include?(value) stdout.include?(value) end
match(value)
click to toggle source
# File lib/hatchet/heroku_run.rb, line 32 def match(value) stdout.match(value) end
match?(value)
click to toggle source
# File lib/hatchet/heroku_run.rb, line 28 def match?(value) stdout.match?(value) end
success?()
click to toggle source
@return [Boolean]
# File lib/hatchet/heroku_run.rb, line 15 def success? @status == 0 end