Class: Vagrant::Chakraos::Host::Cap::NFS
- Inherits:
-
Object
- Object
- Vagrant::Chakraos::Host::Cap::NFS
- Defined in:
- lib/vagrant/chakraos/host/cap/nfs.rb
Class Method Summary collapse
Class Method Details
.nfs_check_command(env) ⇒ Object
8 9 10 |
# File 'lib/vagrant/chakraos/host/cap/nfs.rb', line 8 def self.nfs_check_command(env) return "#{Vagrant::Chakraos::Host::Cap::SYSTEMCTL_PATH}/systemctl status --no-pager nfs-server.service" end |
.nfs_installed(env) ⇒ Object
16 17 18 |
# File 'lib/vagrant/chakraos/host/cap/nfs.rb', line 16 def self.nfs_installed(env) Kernel.system("#{Vagrant::Chakraos::Host::Cap::SYSTEMCTL_PATH}/systemctl --no-pager --no-legend --plain list-unit-files --all --type=service | grep --fixed-strings --quiet nfs-server.service") end |
.nfs_start_command(env) ⇒ Object
12 13 14 |
# File 'lib/vagrant/chakraos/host/cap/nfs.rb', line 12 def self.nfs_start_command(env) return "#{Vagrant::Chakraos::Host::Cap::SYSTEMCTL_PATH}/systemctl start nfs-server.service" end |