methods/vb_common.rb
# Check VM doesn't exist
Check VM doesn't exist
Check VM doesn ' t exist
def check_vbox_vm_doesnt_exist(options)
  message   = "Checking:\tVM "+options['name']+" doesn't exist"
  command   = "#{options['vboxmanage']} list vms"
  host_list = execute_command(options,message,command)
  if host_list.match(options)
    handle_output(options,"Information:\tVirtualBox VM #{options['name']} already exists")
    quit(options)
  end
  return
end
def check_vbox_vm_doesnt_exist ( options ) message = "Checking:\tVM " + options [ 'name' ] + " doesn't exist" command = "#{options['vboxmanage']} list vms" host_list = execute_command ( options , message , command ) if host_list . match ( options ) handle_output ( options , "Information:\tVirtualBox VM #{options['name']} already exists" ) quit ( options ) end return end
Check VM doesn't exist
Check VM doesn ' t exist
options
<not_specific>