Exception: CIDE::Docker::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cide/docker.rb

Overview

Raised when a docker command exits with a status higher than zero

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exitstatus) ⇒ Error

Returns a new instance of Error.



14
15
16
17
# File 'lib/cide/docker.rb', line 14

def initialize(exitstatus)
  @exitstatus = exitstatus
  super("Failed with exitstatus #{exitstatus}")
end

Instance Attribute Details

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



13
14
15
# File 'lib/cide/docker.rb', line 13

def exitstatus
  @exitstatus
end