Class: HashiCorp::VagrantVMwareDesktop::GuestCap::Linux::VerifyVMwareHGFS
- Inherits:
-
Object
- Object
- HashiCorp::VagrantVMwareDesktop::GuestCap::Linux::VerifyVMwareHGFS
- Defined in:
- lib/vagrant-vmware-desktop/guest_cap/linux/verify_vmware_hgfs.rb
Class Method Summary collapse
Class Method Details
.verify_vmware_hgfs(machine) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/vagrant-vmware-desktop/guest_cap/linux/verify_vmware_hgfs.rb', line 9 def self.verify_vmware_hgfs(machine) # Retry a few times since some systems take time to load # the VMware kernel modules. 8.times do |i| # Kernel module return true if machine.communicate.test( "PATH=\"/sbin:$PATH\" lsmod | grep -i '^vmhgfs'") # open-vm-tools (FUSE filesystem) return true if machine.communicate.test( "command -v vmhgfs-fuse") sleep(2 ** i) end return false end |