Module: Kitchen::Transport

Defined in:
lib/kitchen/transport.rb,
lib/kitchen/transport/ssh.rb,
lib/kitchen/transport/base.rb,
lib/kitchen/transport/exec.rb,
lib/kitchen/transport/dummy.rb,
lib/kitchen/transport/winrm.rb

Overview

A transport is responsible for the communication with an instance, that is remote comands and other actions such as file transfer, login, etc.

Author:

Defined Under Namespace

Classes: Base, Dummy, Exec, Ssh, SshFailed, TransportFailed, Winrm, WinrmFailed

Constant Summary collapse

DEFAULT_PLUGIN =

Default transport to use

"ssh".freeze

Class Method Summary collapse

Class Method Details

.for_plugin(plugin, config) ⇒ Transport::Base

Returns an instance of a transport given a plugin type string.

Parameters:

  • plugin (String)

    a transport plugin type, to be constantized

  • config (Hash)

    a configuration hash to initialize the transport

Returns:

Raises:

  • (ClientError)

    if a transport instance could not be created


36
37
38
# File 'lib/kitchen/transport.rb', line 36

def self.for_plugin(plugin, config)
  Kitchen::Plugin.load(self, plugin, config)
end