class Beaker::VagrantWorkstation

Public Class Methods

provider_vfile_section(host, options) click to toggle source
# File lib/beaker/hypervisor/vagrant_workstation.rb, line 8
def self.provider_vfile_section(host, options)   
  v_provider = "    v.vm.provider :vmware_workstation do |v|\n"
  v_provider <<  "      v.vmx['gui'] = true\n" if host['gui'] == true
  v_provider <<  "      v.vmx['memsize'] = '#{memsize(host,options)}'\n"
  v_provider <<  "      v.vmx['whitelist_verified'] = '#{host['whitelist_verified']}'\n" unless host['whitelist_verified'].nil?
  v_provider <<  "      v.vmx['functional_hgfs'] = '#{host['functional_hgfs']}'\n" unless host['functional_hgfs'].nil?
  v_provider <<  "      v.vmx['unmount_default_hgfs'] = '#{host['unmount_default_hgfs']}'\n" unless host['unmount_default_hgfs'].nil?
  v_provider <<  "      v.vmx['utility_port'] = '#{host['utility_port']}'\n" unless host['utility_port'].nil?
  v_provider <<  "    end\n"
end

Public Instance Methods

provision(provider = 'vmware_workstation') click to toggle source
Calls superclass method Beaker::Vagrant#provision
# File lib/beaker/hypervisor/vagrant_workstation.rb, line 4
def provision(provider = 'vmware_workstation')
  super
end