Method: OpenNebula::VirtualMachine#deploy
- Defined in:
- lib/opennebula/virtual_machine.rb
#deploy(host_id, enforce = false, ds_id = -1,, extra_template = "") ⇒ nil, OpenNebula::Error
Initiates the instance of the VM on the target host.
347 348 349 350 351 352 353 354 355 356 357 358 359 360 |
# File 'lib/opennebula/virtual_machine.rb', line 347 def deploy(host_id, enforce=false, ds_id=-1, extra_template="") enforce ||= false ds_id ||= -1 extra_template ||= "" self.info return call(VM_METHODS[:deploy], @pe_id, host_id.to_i, enforce, ds_id.to_i, extra_template) end |