Sha256: 63aaf857ff660b95bfe0e50238bb169f207cee5f1a58b3f8ce30f30c61716bba

Contents?: true

Size: 913 Bytes

Versions: 21

Compression:

Stored size: 913 Bytes

Contents

module VagrantPlugins
  module Invade
    module Validator
      module SyncedFolder

        autoload :VB, 'vagrant-invade/validator/synced_folder/vb'
        autoload :NFS, 'vagrant-invade/validator/synced_folder/nfs'

        DEFAULT = {
          'enabled' => nil,
          'source' => '.',
          'path' => '/www'
        }

        def self.validate_base(env, shared_folder)
          return nil unless shared_folder

          shared_folder['enabled'] = Validator.validate_boolean(
            shared_folder['enabled'], 'enabled', DEFAULT['enabled']
          )

          shared_folder['source'] = Validator.validate_string(
            shared_folder['source'], 'source', DEFAULT['source']
          )

          shared_folder['path'] = Validator.validate_string(
            shared_folder['path'], 'path', DEFAULT['path']
          )

          shared_folder
        end

      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
vagrant-invade-0.5.5 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.5.4 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.5.3 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.5.2 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.5.1 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.5.0 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.4.8 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.4.7 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.4.6 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.4.5 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.4.4 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.4.3 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.4.2 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.4.1 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.4.0 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.4.0.pre.alpha lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.3.4 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.3.3 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.3.2 lib/vagrant-invade/validator/synced_folder.rb
vagrant-invade-0.3.0 lib/vagrant-invade/validator/synced_folder.rb