Method: VagrantPlugins::VagrantHyperV::Action::Export#export

Defined in:
lib/vagrant-windows-hyperv/action/export.rb

#exportObject



38
39
40
41
42
43
44
# File 'lib/vagrant-windows-hyperv/action/export.rb', line 38

def export
  @env[:ui].info('Exporting the VM, this process may take a while.')
  result = @env[:machine].provider.driver.export_vm_to(temp_dir.to_s)
  # Hyper-V Exports the VM under the VM's name in to the temp directory.
  # Set the package directory to this folder, all files should go into this folder
  @env["package.directory"] = temp_dir.join(result["name"])
end