450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
|
# File 'lib/webee.rb', line 450
def to_xml
xm = Builder::XmlMarkup.new
xm.machine {
xm.name name
xm.description description
xm.ip ip
xm.ipService ip_service
xm.user user
xm.password password
xm.realCpu real_cpu
xm.realHd real_hd
xm.realRam real_ram
xm.state state
xm.type hypervisortype
xm.cpu cpu
xm.cpuRatio cpu_ratio
xm.cpuUsed cpu_used
xm.hd hd
xm.hdUsed hd_used
xm.ram ram
xm.ramUsed ram_used
xm.virtualSwitch virtual_switch
xm.datastores {
datastores.each do |ds|
xm.datastore {
xm.name ds.name
xm.directory ds.directory
xm.rootPath ds.root_path
xm.enabled ds.enabled
xm.size ds.size
xm.usedSize ds.used_size
}
end
}
}
xm.target!
end
|