methods/vb_common.rb
# Check if VirtuakBox config file exists
Check if VirtuakBox config file exists
Check if VirtuakBox config file exists
def check_vbox_vm_config_exists(options)
  exists = false
  vm_dir = get_vbox_vm_dir(options)
  config_file = vm_dir+"/"+options['name']+".vbox"
  prev_file   = vm_dir+"/"+options['name']+".vbox-prev"
  if File.exist?(config_file) or File.exist?(prev_file)
    exists = true
  else
    exists = false
  end
  return exists
end
def check_vbox_vm_config_exists ( options ) exists = false vm_dir = get_vbox_vm_dir ( options ) config_file = vm_dir + "/" + options [ 'name' ] + ".vbox" prev_file = vm_dir + "/" + options [ 'name' ] + ".vbox-prev" if File . exist? ( config_file ) or File . exist? ( prev_file ) exists = true else exists = false end return exists end
Check if VirtuakBox config file exists
Check if VirtuakBox config file exists
options
<not_specific>