lib/vagrant/action/vm/nfs.rb
# Prepares the settings for the NFS folders, such as setting the
# options on the NFS folders.
Prepares the settings for the NFS folders, such as setting the
options on the NFS folders.
Prepares the settings for the NFS folders such as setting the options on the NFS folders .
def prepare_folders
          @folders = @folders.inject({}) do |acc, data|
            key, opts = data
            opts[:nfs] = {} if !opts.is_a?(Hash)
            opts[:map_uid] = prepare_permission(:uid, opts)
            opts[:map_gid] = prepare_permission(:gid, opts)
            acc[key] = opts
            acc
          end
        end
def prepare_folders @folders = @folders . inject ( { } ) do | acc , data | key , opts = data opts [ :nfs ] = { } if ! opts . is_a? ( Hash ) opts [ :map_uid ] = prepare_permission ( :uid , opts ) opts [ :map_gid ] = prepare_permission ( :gid , opts ) acc [ key ] = opts acc end end
Prepares the settings for the NFS folders, such as setting the
options on the NFS folders.
Prepares the settings for the NFS folders such as setting the options on the NFS folders .