lib/vagrant/action/vm/nfs.rb
# Prepares the UID/GID settings for a single folder.
Prepares the UID/GID settings for a single folder.
Prepares the UID / GID settings for a single folder .
def prepare_permission(perm, opts)
          key = "map_#{perm}".to_sym
          return nil if opts.has_key?(key) && opts[key].nil?
          value = opts.has_key?(key) ? opts[key] : @env["config"].nfs.send(key)
          return value if value != :auto
          stat = File.stat(opts[:hostpath])
          return stat.send(perm)
        end
def prepare_permission ( perm , opts ) key = "map_#{perm}" . to_sym return nil if opts . has_key? ( key ) && opts [ key ] . nil? value = opts . has_key? ( key ) ? opts [ key ] : @env [ "config" ] . nfs . send ( key ) return value if value != :auto stat = File . stat ( opts [ :hostpath ] ) return stat . send ( perm ) end
Prepares the UID/GID settings for a single folder.
Prepares the UID / GID settings for a single folder .
# The options on the hash get priority, then the default # values # Get UID/GID from folder if we've made it this far # (value == :auto)
perm
<not_specific>
opts
<not_specific>