Class: VagrantPlugins::GuestMSYS2::Cap::MountSharedFolder

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-guest-msys2/cap/mount_shared_folder.rb

Class Method Summary collapse

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, options)
  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, options)
  machine.communicate.execute("cmdkey -add:#{options[:smb_host]} -user:#{options[:smb_username]} -pass:#{options[:smb_password]}")
  mount_shared_folder(machine, name, guestpath, "\\\\#{options[: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, options)
  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, options)
  mount_shared_folder(machine, name, guestpath, "\\\\vmware-host\\Shared Folders\\")
end