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



39
40
41
# File 'lib/kitchen/driver/vmpool.rb', line 39

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

#destroy(state) ⇒ Object



44
45
46
47
48
# File 'lib/kitchen/driver/vmpool.rb', line 44

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