mattbrictson/tomo

View on GitHub
lib/tomo/ssh/unsupported_version_error.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Tomo
  module SSH
    class UnsupportedVersionError < Error
      attr_accessor :command, :expected_version

      def to_console
        msg = <<~ERROR
          Expected #{yellow(command)} to return #{blue(expected_version)} or higher.
        ERROR

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