Merge pull request #3983 from dougm/nixos-nfs-client

guest/nixos: nfs_client_installed capability
This commit is contained in:
Mitchell Hashimoto 2014-06-06 19:52:38 -07:00
commit c5fa6b1191
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,11 @@
module VagrantPlugins
module GuestNixos
module Cap
class NFSClient
def self.nfs_client_installed(machine)
machine.communicate.test("test -x /run/current-system/sw/sbin/mount.nfs")
end
end
end
end
end

View File

@ -20,6 +20,11 @@ module VagrantPlugins
require_relative "cap/change_host_name"
Cap::ChangeHostName
end
guest_capability("nixos", "nfs_client_installed") do
require_relative "cap/nfs_client"
Cap::NFSClient
end
end
end
end