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

Version Path
vagrant-aws-mkubenka-0.7.2.pre.22 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-f3fdbf414272/plugins/hosts/freebsd/cap/nfs.rb
vagrant-aws-mkubenka-0.7.2.pre.16 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-1ee58c40e3f5/plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.0.0.1 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-1.9.8.1 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-1.9.7.1 plugins/hosts/freebsd/cap/nfs.rb
vagrant-aws-mkubenka-0.7.2.pre.14 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/hosts/freebsd/cap/nfs.rb
vagrant-aws-mkubenka-0.7.2.pre.11 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/hosts/freebsd/cap/nfs.rb
vagrant-aws-mkubenka-0.7.2.pre.10 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/hosts/freebsd/cap/nfs.rb
vagrant-aws-mkubenka-0.7.2.pre.9 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-1.9.5.1 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-1.9.1.1 plugins/hosts/freebsd/cap/nfs.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/hosts/freebsd/cap/nfs.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/hosts/freebsd/cap/nfs.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/hosts/freebsd/cap/nfs.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-1.8.5.2 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-1.8.5.1 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-1.8.4.2 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-1.8.4.1 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-1.8.1.2 plugins/hosts/freebsd/cap/nfs.rb