mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-07-16 04:15:49 -04:00
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
22 lines
626 B
Ruby
22 lines
626 B
Ruby
# Copyright IBM Corp. 2010, 2025
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
module VagrantPlugins
|
|
module HostArch
|
|
module Cap
|
|
class NFS
|
|
def self.nfs_check_command(env)
|
|
return "/usr/sbin/systemctl status --no-pager nfs-server.service"
|
|
end
|
|
|
|
def self.nfs_start_command(env)
|
|
return "/usr/sbin/systemctl start nfs-server.service"
|
|
end
|
|
|
|
def self.nfs_installed(environment)
|
|
Kernel.system("systemctl --no-pager --no-legend --plain list-unit-files --all --type=service | grep --fixed-strings --quiet nfs-server.service")
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|