Class: Kitchen::Driver::Vmm
- Inherits:
-
Base
- Object
- Base
- Kitchen::Driver::Vmm
- Includes:
- VMMUtils
- Defined in:
- lib/kitchen/driver/vmm.rb
Overview
Driver for VMM
Constant Summary
Constants included from VMMUtils
Kitchen::Driver::VMMUtils::ERROR_REGEXP, Kitchen::Driver::VMMUtils::OUTPUT_REGEXP
Instance Method Summary collapse
Methods included from VMMUtils
Instance Method Details
#create(state) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/kitchen/driver/vmm.rb', line 30 def create(state) @state = state validate_vm_settings create_virtual_machine info("VM instance #{instance.to_str} created.") end |
#destroy(state) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/kitchen/driver/vmm.rb', line 37 def destroy(state) @state = state instance.transport.connection(state).close remove_virtual_machine info("The VM instance #{instance.to_str} has been removed.") state.delete(:id) end |