lib/vagrant/action/vm/nfs.rb
# Removes the NFS enabled shared folders from the configuration,
# so they will no longer be mounted by the actual shared folder
# task.
Removes the NFS enabled shared folders from the configuration,
so they will no longer be mounted by the actual shared folder
task.
Removes the NFS enabled shared folders from the configuration so they will no longer be mounted by the actual shared folder task .
def extract_folders
          @folders = @env["config"].vm.shared_folders.inject({}) do |acc, data|
            key, opts = data
            if opts[:nfs]
              acc[key] = opts.dup
              acc[key][:hostpath] = File.expand_path(opts[:hostpath], @env.env.root_path)
              opts[:disabled] = true
            end
            acc
          end
        end
def extract_folders @folders = @env [ "config" ] . vm . shared_folders . inject ( { } ) do | acc , data | key , opts = data if opts [ :nfs ] acc [ key ] = opts . dup acc [ key ] [ :hostpath ] = File . expand_path ( opts [ :hostpath ] , @env . env . root_path ) opts [ :disabled ] = true end acc end end
Removes the NFS enabled shared folders from the configuration,
so they will no longer be mounted by the actual shared folder
task.
Removes the NFS enabled shared folders from the configuration so they will no longer be mounted by the actual shared folder task .
# Load the NFS enabled shared folders # Duplicate the options, set the hostpath, and set disabled on the original # options so the ShareFolders middleware doesn't try to mount it.