Class: Kitchen::Driver::Vmpool

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

Instance Method Summary collapse

Instance Method Details

#create(state) ⇒ Object



42
43
44
# File 'lib/kitchen/driver/vmpool.rb', line 42

def create(state)
  state[:hostname] = pool_member
end

#destroy(state) ⇒ Object



47
48
49
50
51
# File 'lib/kitchen/driver/vmpool.rb', line 47

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