Class: Beaker::VagrantWorkstation

Inherits:
Vagrant
  • Object
show all
Defined in:
lib/beaker/hypervisor/vagrant_workstation.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Vagrant

#cleanup, #configure, #connection_preference, cpus, #initialize, #make_vfile, memsize, #private_network_generator, #rand_chunk, #randip, #set_all_ssh_config, #set_ssh_config, #shell_provisioner_generator, #vagrant_cmd

Constructor Details

This class inherits a constructor from Beaker::Vagrant

Class Method Details

.provider_vfile_section(host, options) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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"
  unless host['whitelist_verified'].nil?
    v_provider <<  "      v.vmx['whitelist_verified'] = '#{host['whitelist_verified']}'\n"
  end
  v_provider << "      v.vmx['functional_hgfs'] = '#{host['functional_hgfs']}'\n" unless host['functional_hgfs'].nil?
  unless host['unmount_default_hgfs'].nil?
    v_provider <<  "      v.vmx['unmount_default_hgfs'] = '#{host['unmount_default_hgfs']}'\n"
  end
  v_provider <<  "      v.vmx['utility_port'] = '#{host['utility_port']}'\n" unless host['utility_port'].nil?
  v_provider <<  "    end\n"
end

Instance Method Details

#provision(provider = 'vmware_workstation') ⇒ Object



4
5
6
# File 'lib/beaker/hypervisor/vagrant_workstation.rb', line 4

def provision(provider = 'vmware_workstation')
  super
end