class Bio::CommandResult

Attributes

command[RW]
status[RW]
stderr[RW]
stdout[RW]
timed_out[RW]

Public Instance Methods

raise_if_failed() click to toggle source
# File lib/bio-commandeer/commandeer.rb, line 58
def raise_if_failed
  if @timed_out
    raise Bio::CommandFailedException, "Command timed out. Command run was #{command}."
  elsif @status.exitstatus != 0
    raise Bio::CommandFailedException, "Command returned non-zero exit status (#{@status.exitstatus}), likely indicating failure. Command run was #{@command} and the STDERR was:\n#{@stderr}\nSTDOUT was: #{@stdout}"
  end
end