Class: Kitchen::Instance

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/instance_patch.rb

Overview

Monkey patch the Kitchen::Instance class with the default configs for the Localhost driver/transport.

Author:

Instance Method Summary collapse

Instance Method Details

#old_setup_transportObject



31
# File 'lib/kitchen/instance_patch.rb', line 31

alias_method :old_setup_transport, :setup_transport

#setup_transportObject

If using the Localhost driver, force usage of the Localhost transport.

(see Instance#setup_transport)



37
38
39
40
41
42
# File 'lib/kitchen/instance_patch.rb', line 37

def setup_transport
  if @driver.is_a?(Kitchen::Driver::Localhost)
    @transport = Kitchen::Transport::Localhost.new
  end
  old_setup_transport
end