Exception: SharedTools::Tools::Docker::ComposeRunTool::CaptureError
- Inherits:
-
StandardError
- Object
- StandardError
- SharedTools::Tools::Docker::ComposeRunTool::CaptureError
- Defined in:
- lib/shared_tools/tools/docker/compose_run_tool.rb
Overview
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, status:) ⇒ CaptureError
constructor
A new instance of CaptureError.
Constructor Details
#initialize(text:, status:) ⇒ CaptureError
Returns a new instance of CaptureError.
32 33 34 35 36 |
# File 'lib/shared_tools/tools/docker/compose_run_tool.rb', line 32 def initialize(text:, status:) super("[STATUS=#{status.exitstatus}] #{text}") @text = text @status = status end |
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status.
28 29 30 |
# File 'lib/shared_tools/tools/docker/compose_run_tool.rb', line 28 def status @status end |
#text ⇒ Object
Returns the value of attribute text.
27 28 29 |
# File 'lib/shared_tools/tools/docker/compose_run_tool.rb', line 27 def text @text end |