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-unbundled-2.2.4.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.3.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.2.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.2.0.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.1.4.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.1.2.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/hosts/freebsd/cap/nfs.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/hosts/freebsd/cap/nfs.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/hosts/freebsd/cap/nfs.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/hosts/freebsd/cap/nfs.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/hosts/freebsd/cap/nfs.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.1.1.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.0.4.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.0.3.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-aws-detiber-0.7.2.pre.4 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/hosts/freebsd/cap/nfs.rb
vagrant-aws-detiber-0.7.2.pre.3 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/hosts/freebsd/cap/nfs.rb
vagrant-aws-detiber-0.7.2.pre.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.0.2.0 plugins/hosts/freebsd/cap/nfs.rb
vagrant-unbundled-2.0.1.0 plugins/hosts/freebsd/cap/nfs.rb