Support verify_vmware_hgfs in darwin guest.

This commit is contained in:
Timothy Sutton 2013-08-09 15:00:38 -04:00
parent 471dc2dc7d
commit caaaa9fe28
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,12 @@
module VagrantPlugins
module GuestDarwin
module Cap
class VerifyVmwareHgfs
def self.verify_vmware_hgfs(machine)
kext_bundle_id = "com.vmware.kext.vmhgfs"
machine.communicate.test("kextstat -b #{kext_bundle_id} -l | grep #{kext_bundle_id}")
end
end
end
end
end

View File

@ -40,6 +40,11 @@ module VagrantPlugins
require_relative "cap/shell_expand_guest_path" require_relative "cap/shell_expand_guest_path"
Cap::ShellExpandGuestPath Cap::ShellExpandGuestPath
end end
guest_capability("darwin", "verify_vmware_hgfs") do
require_relative "cap/verify_vmware_hgfs"
Cap::VerifyVmwareHgfs
end
end end
end end
end end