class Armature::Run::CommandFailureError

Attributes

command[R]
output[R]
status[R]

Public Class Methods

new(status, command, output) click to toggle source
Calls superclass method
# File lib/armature/run.rb, line 12
def initialize(status, command, output)
  @status = status
  @command = command
  @output = output
  super("Command '#{@command.first}' failed with #{@status}")
end

Public Instance Methods

to_s() click to toggle source
# File lib/armature/run.rb, line 19
def to_s
  command_str = Armature::Run.command_to_string(@command)
  "Command failed: #{command_str}\nReturn: #{@status}\nOutput:\n#{@output}\n"
end