Sha256: f608485a1efcb761722ce1c03f6d7cff0a070848fe8f3548e054b08101e9cf32
Contents?: true
Size: 826 Bytes
Versions: 46
Compression:
Stored size: 826 Bytes
Contents
require "vagrant/util" require "vagrant/util/retryable" require Vagrant.source_root.join("plugins", "hosts", "bsd", "cap", "nfs") module VagrantPlugins module HostFreeBSD module Cap class NFS def self.nfs_export(environment, ui, id, ips, folders) folders.each do |folder_name, folder_values| if folder_values[:hostpath] =~ /\s+/ raise Vagrant::Errors::VagrantError, _key: :freebsd_nfs_whitespace end end HostBSD::Cap::NFS.nfs_export(environment, ui, id, ips, folders) end def self.nfs_exports_template(environment) "nfs/exports_freebsd" end def self.nfs_restart_command(environment) ["sudo", "/etc/rc.d/mountd", "onereload"] end end end end end
Version data entries
46 entries across 39 versions & 7 rubygems