vaguerent/plugins/guests/linux/cap/nfs_client.rb
Mitchell Hashimoto 91380c0650 synced_folders/nfs: automatically install NFS client if possible
If guests have the following capabilities, automatic NFS client
installation will be done:

  * nfs_client_installed - Checks if the NFS client is installed
  * nfs_client_install - Install the NFS client

Support is already in for Debian, Ubuntu, RedHat, CentOS, and Fedora
2014-01-09 16:58:20 -08:00

12 lines
228 B
Ruby

module VagrantPlugins
module GuestLinux
module Cap
class NFSClient
def self.nfs_client_installed(machine)
machine.communicate.test("test -x /sbin/mount.nfs")
end
end
end
end
end