Class: Beaker::VagrantFusion
- Defined in:
- lib/beaker/hypervisor/vagrant_fusion.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
12 13 14 15 16 |
# File 'lib/beaker/hypervisor/vagrant_fusion.rb', line 12 def self.provider_vfile_section(host, ) " v.vm.provider :vmware_fusion do |v|\n" + " v.vmx['memsize'] = '#{memsize(host, options)}'\n" + " end\n" end |
Instance Method Details
#provision(provider = 'vmware_fusion') ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/beaker/hypervisor/vagrant_fusion.rb', line 4 def provision(provider = 'vmware_fusion') # By default vmware_fusion creates a .vagrant directory relative to the # Vagrantfile path. That means beaker tries to scp the VM to itself unless # we move the VM files elsewhere. ENV['VAGRANT_VMWARE_CLONE_DIRECTORY'] = '~/.vagrant/vmware_fusion' super end |