Module: Tomo::SSH

Extended by:
Testing::SSHExtensions
Defined in:
lib/tomo/ssh.rb,
lib/tomo/ssh/error.rb,
lib/tomo/ssh/options.rb,
lib/tomo/ssh/connection.rb,
lib/tomo/ssh/script_error.rb,
lib/tomo/ssh/child_process.rb,
lib/tomo/ssh/unknown_error.rb,
lib/tomo/ssh/connection_error.rb,
lib/tomo/ssh/executable_error.rb,
lib/tomo/ssh/permission_error.rb,
lib/tomo/ssh/connection_validator.rb,
lib/tomo/ssh/unsupported_version_error.rb

Defined Under Namespace

Classes: ChildProcess, Connection, ConnectionError, ConnectionValidator, Error, ExecutableError, Options, PermissionError, ScriptError, UnknownError, UnsupportedVersionError

Class Method Summary collapse

Class Method Details

.connect(host:, options: {}) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/tomo/ssh.rb', line 18

def connect(host:, options: {})
  options = Options.new(options) unless options.is_a?(Options)

  Tomo.logger.connect(host)
  return build_dry_run_connection(host, options) if Tomo.dry_run?

  build_connection(host, options)
end