Exception: DreamOps::InvalidSshKeyError

Inherits:
DreamOpsError
  • Object
show all
Defined in:
lib/dream-ops/errors.rb

Instance Method Summary collapse

Methods inherited from DreamOpsError

set_status_code

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_sObject



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