Method: Fission::Metadata#delete_vm_restart_document

Defined in:
lib/fission/metadata.rb

#delete_vm_restart_document(vm_path) ⇒ Object

Public: Deletes the VM information from the ‘restart document path’ metadata. The ‘restart document path’ dictates which GUI consoles to display when Fusion starts.

vm_path - The absolute path to the directory of a VM.

Examples

.delete_vm_restart_document 'vms/foo.vmwarevm'

Returns nothing.



70
71
72
73
74
# File 'lib/fission/metadata.rb', line 70

def delete_vm_restart_document(vm_path)
  if @content.has_key?('PLRestartDocumentPaths')
    @content['PLRestartDocumentPaths'].delete_if { |p| p == vm_path }
  end
end