Exception: Tomo::SSH::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

raise_with

Methods included from Colors

enabled?

Instance Attribute Details

#hostObject

Returns the value of attribute host.



6
7
8
# File 'lib/tomo/ssh/error.rb', line 6

def host
  @host
end

Instance Method Details

#to_consoleObject



8
9
10
# File 'lib/tomo/ssh/error.rb', line 8

def to_console
  [debug_suggestion, red(message.strip)].compact.join("\n\n")
end