Exception: Tomo::SSH::ConnectionError

Inherits:
Error
  • Object
show all
Defined in:
lib/tomo/ssh/connection_error.rb

Instance Attribute Summary

Attributes inherited from Error

#host

Instance Method Summary collapse

Methods inherited from Error

raise_with

Methods included from Colors

enabled?

Instance Method Details

#to_consoleObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/tomo/ssh/connection_error.rb', line 6

def to_console
  msg = <<~ERROR
    Unable to connect via SSH to #{yellow(host.address)} on port #{yellow(host.port)}.

    Make sure the hostname and port are correct and that you have the
    necessary network (or VPN) access.
  ERROR

  [msg, super].join("\n")
end