Fix virtualbox shared folders path
This commit is contained in:
parent
a3b9d231ad
commit
7f9a4b67d2
|
@ -5,7 +5,7 @@ module VagrantPlugins
|
||||||
module Cap
|
module Cap
|
||||||
class MountSharedFolder
|
class MountSharedFolder
|
||||||
def self.mount_virtualbox_shared_folder(machine, name, guestpath, options)
|
def self.mount_virtualbox_shared_folder(machine, name, guestpath, options)
|
||||||
mount_shared_folder(machine, name, guestpath, "\\\\vboxsrv\\")
|
mount_shared_folder(machine, name, guestpath, "\\\\vboxsvr\\")
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.mount_vmware_shared_folder(machine, name, guestpath, options)
|
def self.mount_vmware_shared_folder(machine, name, guestpath, options)
|
||||||
|
|
|
@ -24,7 +24,7 @@ describe "VagrantPlugins::GuestWindows::Cap::MountSharedFolder" do
|
||||||
/.+scripts\/mount_volume.ps1/, options: {
|
/.+scripts\/mount_volume.ps1/, options: {
|
||||||
mount_point: "guestpath",
|
mount_point: "guestpath",
|
||||||
share_name: "name",
|
share_name: "name",
|
||||||
vm_provider_unc_path: "\\\\vboxsrv\\name",
|
vm_provider_unc_path: "\\\\vboxsvr\\name",
|
||||||
})
|
})
|
||||||
described_class.mount_virtualbox_shared_folder(machine, 'name', 'guestpath', {})
|
described_class.mount_virtualbox_shared_folder(machine, 'name', 'guestpath', {})
|
||||||
end
|
end
|
||||||
|
@ -34,7 +34,7 @@ describe "VagrantPlugins::GuestWindows::Cap::MountSharedFolder" do
|
||||||
kind_of(String), options: {
|
kind_of(String), options: {
|
||||||
mount_point: kind_of(String),
|
mount_point: kind_of(String),
|
||||||
share_name: "invalid-windows_sharename",
|
share_name: "invalid-windows_sharename",
|
||||||
vm_provider_unc_path: "\\\\vboxsrv\\invalid-windows_sharename",
|
vm_provider_unc_path: "\\\\vboxsvr\\invalid-windows_sharename",
|
||||||
})
|
})
|
||||||
described_class.mount_virtualbox_shared_folder(machine, "/invalid-windows/sharename", "guestpath", {})
|
described_class.mount_virtualbox_shared_folder(machine, "/invalid-windows/sharename", "guestpath", {})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue