Method: Kitchen::Driver::Proxy#destroy

Defined in:
lib/kitchen/driver/proxy.rb

#destroy(state) ⇒ Object

Destroys an instance.

Parameters:

  • state (Hash)

    mutable instance and driver state

Raises:



48
49
50
51
52
53
# File 'lib/kitchen/driver/proxy.rb', line 48

def destroy(state)
  return if state[:hostname].nil?

  reset_instance(state)
  state.delete(:hostname)
end