Class: Kitchen::Transport::Exec

Inherits:
Base
  • Object
show all
Defined in:
lib/kitchen/transport/exec.rb

Overview

Exec transport for Kitchen. This transport runs all commands locally.

Since:

  • 1.19

Defined Under Namespace

Classes: Connection

Instance Attribute Summary

Attributes included from Configurable

#instance

Instance Method Summary collapse

Methods inherited from Base

#cleanup!, #doctor, #initialize, kitchen_transport_api_version

Methods included from Logging

#banner, #debug, #error, #fatal, #info, #warn

Methods included from Configurable

#[], #bourne_shell?, #calculate_path, #config_keys, #diagnose, #diagnose_plugin, #finalize_config!, included, #name, #powershell_shell?, #remote_path_join, #unix_os?, #verify_dependencies, #windows_os?

Constructor Details

This class inherits a constructor from Kitchen::Transport::Base

Instance Method Details

#connection(state, &block) ⇒ Object

Since:

  • 1.19



30
31
32
33
# File 'lib/kitchen/transport/exec.rb', line 30

def connection(state, &block)
  options = config.to_hash.merge(state)
  Kitchen::Transport::Exec::Connection.new(options, &block)
end