Sha256: 63515a37c1513e7229a21cc81d8fa73f296817852b8e436d9814a7ef05921f94

Contents?: true

Size: 418 Bytes

Versions: 49

Compression:

Stored size: 418 Bytes

Contents

module Vagrant
  class Action
    module General
      # Simply validates the configuration of the current Vagrant
      # environment.
      class Validate
        def initialize(app, env)
          @app = app
          @env = env
        end

        def call(env)
          @env["config"].validate! if !@env.has_key?("validate") || @env["validate"]
          @app.call(@env)
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 5 rubygems

Version Path
vagrantup-0.8.9 lib/vagrant/action/general/validate.rb
vagrantup-0.8.8 lib/vagrant/action/general/validate.rb
vagrantup-0.8.7 lib/vagrant/action/general/validate.rb
vagrantup-0.8.6 lib/vagrant/action/general/validate.rb
vagrantup-0.8.5 lib/vagrant/action/general/validate.rb
vagrantup-0.8.4 lib/vagrant/action/general/validate.rb
vagrantup-0.8.3 lib/vagrant/action/general/validate.rb
vagrantup-0.8.2 lib/vagrant/action/general/validate.rb
vagrantup-0.8.10 lib/vagrant/action/general/validate.rb
vagrantup-0.8.1 lib/vagrant/action/general/validate.rb
vagrantup-0.8.0 lib/vagrant/action/general/validate.rb
vagrantup-0.7.8 lib/vagrant/action/general/validate.rb
vagrantup-0.7.7 lib/vagrant/action/general/validate.rb
vagrantup-0.7.6 lib/vagrant/action/general/validate.rb
vagrantup-0.7.5 lib/vagrant/action/general/validate.rb
vagrantup-0.7.4 lib/vagrant/action/general/validate.rb
vagrantup-0.7.3 lib/vagrant/action/general/validate.rb
vagrantup-0.7.2 lib/vagrant/action/general/validate.rb
vagrantup-0.7.1 lib/vagrant/action/general/validate.rb
vagrantup-0.7.0 lib/vagrant/action/general/validate.rb