Exception: Tomo::SSH::UnsupportedVersionError
- Defined in:
- lib/tomo/ssh/unsupported_version_error.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#expected_version ⇒ Object
Returns the value of attribute expected_version.
Attributes inherited from Error
Instance Method Summary collapse
Methods inherited from Error
Methods included from Colors
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
6 7 8 |
# File 'lib/tomo/ssh/unsupported_version_error.rb', line 6 def command @command end |
#expected_version ⇒ Object
Returns the value of attribute expected_version.
6 7 8 |
# File 'lib/tomo/ssh/unsupported_version_error.rb', line 6 def expected_version @expected_version end |
Instance Method Details
#to_console ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/tomo/ssh/unsupported_version_error.rb', line 8 def to_console msg = <<~ERROR Expected #{yellow(command)} to return #{blue(expected_version)} or higher. ERROR [msg, super].join("\n") end |