Exception: SafeImage::CommandError

Inherits:
Error
  • Object
show all
Defined in:
lib/safe_image/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, command:, status: nil, stdout: "", stderr: "") ⇒ CommandError

Returns a new instance of CommandError.



11
12
13
14
15
16
17
# File 'lib/safe_image/runner.rb', line 11

def initialize(message, command:, status: nil, stdout: "", stderr: "")
  super(message)
  @command = command
  @status = status
  @stdout = stdout
  @stderr = stderr
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



9
10
11
# File 'lib/safe_image/runner.rb', line 9

def command
  @command
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/safe_image/runner.rb', line 9

def status
  @status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



9
10
11
# File 'lib/safe_image/runner.rb', line 9

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



9
10
11
# File 'lib/safe_image/runner.rb', line 9

def stdout
  @stdout
end