Class: Xen::Console
Class Method Summary collapse
-
.create(vm, host) ⇒ Object
Create method, takes a name, a device (p.ex. ‘phy:/dev/storage/slice’) and a host.
Methods inherited from Base
#initialize, #record, #to_s, #uuid
Constructor Details
This class inherits a constructor from Xen::Base
Class Method Details
.create(vm, host) ⇒ Object
Create method, takes a name, a device (p.ex. ‘phy:/dev/storage/slice’) and a host
10 11 12 13 14 |
# File 'lib/xen/console.rb', line 10 def self.create(vm, host) config = @initial_config.merge({:VM => vm.uuid}) uuid = host.get_value("console.create", config) self.new(uuid, host) end |