Class: Kitchen::Driver::Vmpool

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

Instance Method Summary collapse

Instance Method Details

#create(state) ⇒ Object



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

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

#destroy(state) ⇒ Object



51
52
53
54
55
# File 'lib/kitchen/driver/vmpool.rb', line 51

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