Sha256: e0c96019e97cb4efb06c919b6643b469b1ba207df0a5ab0dea4018953abf3553

Contents?: true

Size: 822 Bytes

Versions: 17

Compression:

Stored size: 822 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_bsd"
        end

        def self.nfs_restart_command(environment)
          ["sudo", "/etc/rc.d/mountd", "onereload"]
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/hosts/freebsd/cap/nfs.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.3.3.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.3.2.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.19.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.18.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.16.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.14.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.10.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.9.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.8.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.7.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.6.2 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.6.1 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.6.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.5.0 plugins/hosts/freebsd/cap/nfs.rb