lib/virtualbox/appliance.rb in virtualbox-0.6.1 vs lib/virtualbox/appliance.rb in virtualbox-0.7.0
- old
+ new
@@ -50,10 +50,13 @@
def export(&block)
interface.write("ovf-1.0", path).wait(&block)
end
# Adds a VM to the appliance
- def add_machine(vm)
- vm.interface.export(interface)
+ def add_machine(vm, options = {})
+ sys_desc = vm.interface.export(interface)
+ options.each do |key, value|
+ sys_desc.add_description(key, value, value)
+ end
end
end
end
\ No newline at end of file