Exception: LocalDevelopmentGateway::DockerError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, output) ⇒ DockerError

Returns a new instance of DockerError.



21
22
23
24
25
# File 'lib/local_development_gateway.rb', line 21

def initialize(command, output)
  @command = command
  @output = output
  super("Docker command failed: #{command.join(" ")}\n#{output}")
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



19
20
21
# File 'lib/local_development_gateway.rb', line 19

def command
  @command
end

#outputObject (readonly)

Returns the value of attribute output.



19
20
21
# File 'lib/local_development_gateway.rb', line 19

def output
  @output
end