Class: Kitchen::Driver::Proxy
- Defined in:
- lib/kitchen/driver/proxy.rb
Overview
Proxy driver for Test Kitchen.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from SSHBase
#converge, #login_command, #setup, #ssh, #verify
Methods inherited from Base
#[], #config_keys, #converge, #diagnose, #initialize, #login_command, #name, #setup, #validate_config!, #verify, #verify_dependencies
Methods included from ShellOut
Constructor Details
This class inherits a constructor from Kitchen::Driver::Base
Instance Method Details
#create(state) ⇒ Object
36 37 38 39 |
# File 'lib/kitchen/driver/proxy.rb', line 36 def create(state) state[:hostname] = config[:host] reset_instance(state) end |
#destroy(state) ⇒ Object
41 42 43 44 45 |
# File 'lib/kitchen/driver/proxy.rb', line 41 def destroy(state) return if state[:hostname].nil? reset_instance(state) state.delete(:hostname) end |