vagrant/plugins/hosts/arch/cap/nfs.rb

20 lines
460 B
Ruby
Raw Normal View History

2014-01-08 04:53:39 +00:00
module VagrantPlugins
module HostArch
module Cap
class NFS
def self.nfs_check_command(env)
return "/usr/sbin/systemctl status --no-pager nfs-server.service"
2014-01-08 04:53:39 +00:00
end
def self.nfs_start_command(env)
return "/usr/sbin/systemctl start nfs-server.service"
2014-01-08 04:53:39 +00:00
end
def self.nfs_installed(environment)
Kernel.system("grep -Fq nfsd /proc/filesystems")
2014-01-08 04:53:39 +00:00
end
end
end
end
end