Sha256: 7ea06834da96c0aaaf1444976faad3cb5f84b2e7357ec924530f80fdca497ea5
Contents?: true
Size: 1015 Bytes
Versions: 21
Compression:
Stored size: 1015 Bytes
Contents
module VagrantPlugins module Invade module Validator module SyncedFolder class NFS attr_accessor :env attr_accessor :nfs DEFAULT = { 'uid' => nil, 'gid' => nil, 'mount_options' => ['nolock'] } def initialize(env, nfs) @env = env @nfs = SyncedFolder.validate_base(env, nfs) end def validate return nil unless @nfs # USER ID @nfs['uid'] = Validator.validate_integer( @nfs['uid'], 'uid', DEFAULT['uid'] ) # GROUP ID @nfs['gid'] = Validator.validate_integer( @nfs['gid'], 'gid', DEFAULT['gid'] ) # NFS OPTIONS @nfs['mount_options'] = Validator.validate_array( @nfs['mount_options'], 'mount_options', DEFAULT['mount_options'] ) @nfs end end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems