Exception: Tomo::SSH::PermissionError
- Defined in:
- lib/tomo/ssh/permission_error.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
Methods inherited from Error
Methods included from Colors
Instance Method Details
#to_console ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/tomo/ssh/permission_error.rb', line 6 def to_console as_user = host.user && " as user #{yellow(host.user)}" msg = <<~ERROR Unable to connect via SSH to #{yellow(host.address)}#{as_user}. Check that you’ve specified the correct username and that your public key is properly installed on the server. ERROR [msg, super].join("\n") end |