Class: Kitchen::Driver::Static

Inherits:
Base
  • Object
show all
Defined in:
lib/kitchen/driver/static.rb

Overview

Driver for using static/physical hosts with Kitchen. This driver is a newer version of the proxy driver.

Author:

Instance Method Summary collapse

Instance Method Details

#create(state) ⇒ Object



17
18
19
# File 'lib/kitchen/driver/static.rb', line 17

def create(state)
  state[:hostname] = config[:host]
end

#destroy(state) ⇒ Object



21
22
23
24
# File 'lib/kitchen/driver/static.rb', line 21

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