Sha256: 25b3e1a31b4ecce9bed09f9bf2e4f335bc151dad816316733efc5325574a00e4

Contents?: true

Size: 1.06 KB

Versions: 16

Compression:

Stored size: 1.06 KB

Contents

module VagrantPlugins
  module Invade
    module Validator
      module Plugin

        class WinNFSd

          attr_accessor :env
          attr_accessor :winnfsd

          DEFAULT = {
            'logging' => false,
            'uid' => nil,
            'guid' => nil
          }

          def initialize(env, winnfsd)
            @env = env
            @winnfsd = winnfsd
          end

          def validate
            return nil unless @winnfsd

            # LOGGING (activate the logging of the NFS daemon which will show the daemon window in the foreground)
            @winnfsd['logging'] = Validator.validate_boolean(
              @winnfsd['logging'], 'logging', DEFAULT['logging']
            )

            # User ID
            @winnfsd['uid'] = Validator.validate_integer(
              @winnfsd['uid'], 'uid', DEFAULT['uid']
            )

            # Group ID
            @winnfsd['gid'] = Validator.validate_integer(
              @winnfsd['gid'], 'gid', DEFAULT['gid']
            )

            @winnfsd
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
vagrant-invade-0.5.5 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.5.4 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.5.3 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.5.2 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.5.1 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.5.0 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.4.8 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.4.7 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.4.6 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.4.5 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.4.4 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.4.3 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.4.2 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.4.1 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.4.0 lib/vagrant-invade/validator/plugin/winnfsd.rb
vagrant-invade-0.4.0.pre.alpha lib/vagrant-invade/validator/plugin/winnfsd.rb