| Class | Xen::Vm |
| In: |
lib/xen/vm.rb
|
| Parent: | Object |
| uid | [R] |
Gets the state of the VM. The first time it is called it query‘s the server, other times it is cached. There is an optional parameter ‘refresh’ which, when true, will re-query the server.
# Having vm being a new initiated Vm vm.state # => "Running" vm.clean_shutdown! # => "Running" # We wait a while vm.state # => "Running" (cached) vm.state(true) # => "Halted"