Sha256: 4cc789a9b249ffa66da374214ec96a025f2121402327b8e9e4e878fb5ea5c0a9

Contents?: true

Size: 972 Bytes

Versions: 4

Compression:

Stored size: 972 Bytes

Contents

require 'beaker/hypervisor/vagrant'

class Beaker::VagrantDesktop < Beaker::Vagrant
  def provision(provider = 'vmware_desktop')
    super
  end

  def self.provider_vfile_section(host, options)
    v_provider = "    v.vm.provider :vmware_desktop 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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
beaker-vagrant-1.3.0 lib/beaker/hypervisor/vagrant_desktop.rb
beaker-vagrant-1.2.0 lib/beaker/hypervisor/vagrant_desktop.rb
beaker-vagrant-1.1.0 lib/beaker/hypervisor/vagrant_desktop.rb
beaker-vagrant-1.0.0 lib/beaker/hypervisor/vagrant_desktop.rb