Class: VagrantPlugins::GuestMSYS2::Cap::MountSharedFolder
- Inherits:
-
Object
- Object
- VagrantPlugins::GuestMSYS2::Cap::MountSharedFolder
- Defined in:
- lib/vagrant-guest-msys2/cap/mount_shared_folder.rb
Class Method Summary collapse
- .mount_parallels_shared_folder(machine, name, guestpath, options) ⇒ Object
- .mount_smb_shared_folder(machine, name, guestpath, options) ⇒ Object
- .mount_virtualbox_shared_folder(machine, name, guestpath, options) ⇒ Object
- .mount_vmware_shared_folder(machine, name, guestpath, options) ⇒ Object
Class Method Details
.mount_parallels_shared_folder(machine, name, guestpath, options) ⇒ Object
16 17 18 |
# File 'lib/vagrant-guest-msys2/cap/mount_shared_folder.rb', line 16 def self.mount_parallels_shared_folder(machine, name, guestpath, ) mount_shared_folder(machine, name, guestpath, "\\\\psf\\") end |
.mount_smb_shared_folder(machine, name, guestpath, options) ⇒ Object
20 21 22 23 |
# File 'lib/vagrant-guest-msys2/cap/mount_shared_folder.rb', line 20 def self.mount_smb_shared_folder(machine, name, guestpath, ) machine.communicate.execute("cmdkey -add:#{[:smb_host]} -user:#{[:smb_username]} -pass:#{[:smb_password]}") mount_shared_folder(machine, name, guestpath, "\\\\#{[:smb_host]}\\") end |
.mount_virtualbox_shared_folder(machine, name, guestpath, options) ⇒ Object
8 9 10 |
# File 'lib/vagrant-guest-msys2/cap/mount_shared_folder.rb', line 8 def self.mount_virtualbox_shared_folder(machine, name, guestpath, ) mount_shared_folder(machine, name, guestpath, "\\\\vboxsrv\\") end |
.mount_vmware_shared_folder(machine, name, guestpath, options) ⇒ Object
12 13 14 |
# File 'lib/vagrant-guest-msys2/cap/mount_shared_folder.rb', line 12 def self.mount_vmware_shared_folder(machine, name, guestpath, ) mount_shared_folder(machine, name, guestpath, "\\\\vmware-host\\Shared Folders\\") end |