Add nixos guest capability: nfs_client_installed

This commit is contained in:
Doug MacEachern 2014-06-05 17:53:32 -07:00
parent 004ea50bf2
commit 3b1b3d0a00
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