Exception: DreamOps::InvalidSshKeyError
- Inherits:
-
DreamOpsError
- Object
- StandardError
- DreamOpsError
- DreamOps::InvalidSshKeyError
- Defined in:
- lib/dream-ops/errors.rb
Instance Method Summary collapse
-
#initialize(target, output) ⇒ InvalidSshKeyError
constructor
A new instance of InvalidSshKeyError.
- #to_s ⇒ Object
Methods inherited from DreamOpsError
Constructor Details
#initialize(target, output) ⇒ InvalidSshKeyError
Returns a new instance of InvalidSshKeyError.
55 56 57 58 |
# File 'lib/dream-ops/errors.rb', line 55 def initialize(target, output) @target = target @output = output end |
Instance Method Details
#to_s ⇒ Object
60 61 62 63 64 65 66 |
# File 'lib/dream-ops/errors.rb', line 60 def to_s [ "Failed to communicate with '#{@target}' over ssh:", "", @output, ].join("\n") end |