Class: Virt::KVM::Guest

Inherits:
Guest
  • Object
show all
Defined in:
lib/virt/kvm/guest.rb

Instance Attribute Summary

Attributes inherited from Guest

#arch, #boot_device, #current_memory, #interface, #machine, #memory, #name, #template_path, #type, #vcpu, #volume, #xml_desc

Instance Method Summary collapse

Methods inherited from Guest

#<=>, #destroy, #new?, #poweroff, #reboot, #running?, #save, #shutdown, #start, #stop, #to_s, #uuid

Methods included from Util

#to_gb, #xml

Constructor Details

#initialize(options = {}) ⇒ Guest

Returns a new instance of Guest.



4
5
6
7
8
# File 'lib/virt/kvm/guest.rb', line 4

def initialize options = {}
  super(options)
  @volume        = Volume.new options
  @interface   ||= Interface.new options
end

Instance Method Details

#arch=(value) ⇒ Object



10
11
12
# File 'lib/virt/kvm/guest.rb', line 10

def arch= value
  @arch = value == "i386" ? "i686" : value
end