Class: Kitchen::Instance
- Inherits:
-
Object
- Object
- Kitchen::Instance
- Defined in:
- lib/kitchen/instance_patch.rb
Overview
Monkey patch the Kitchen::Instance class with the default configs for the Localhost driver/transport.
Instance Method Summary collapse
- #old_setup_transport ⇒ Object
-
#setup_transport ⇒ Object
If using the Localhost driver, force usage of the Localhost transport.
Instance Method Details
#old_setup_transport ⇒ Object
31 |
# File 'lib/kitchen/instance_patch.rb', line 31 alias_method :old_setup_transport, :setup_transport |
#setup_transport ⇒ Object
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 |