Sha256: 7bfefac83d6bb1f2ad6fea7c8495debb0b791c6223faf8611d9b90e89dfcd1f7

Contents?: true

Size: 410 Bytes

Versions: 24

Compression:

Stored size: 410 Bytes

Contents

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

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

Version data entries

24 entries across 24 versions & 6 rubygems

Version Path
bmhatfield-vagrant-1.0.10 lib/vagrant/action/general/validate.rb
bmhatfield-vagrant-1.0.9 lib/vagrant/action/general/validate.rb
bmhatfield-vagrant-1.0.8 lib/vagrant/action/general/validate.rb
bmhatfield-vagrant-1.0.7 lib/vagrant/action/general/validate.rb
vagrantup-1.0.7 lib/vagrant/action/general/validate.rb
vagrantup-1.0.6 lib/vagrant/action/general/validate.rb
vagrantup-1.0.5 lib/vagrant/action/general/validate.rb
vagrantup-1.0.4 lib/vagrant/action/general/validate.rb
vagrantup-1.0.3 lib/vagrant/action/general/validate.rb
vagrantup-1.0.2 lib/vagrant/action/general/validate.rb
vagrantup-1.0.1 lib/vagrant/action/general/validate.rb
vagrantup-1.0.0 lib/vagrant/action/general/validate.rb
vagrantup-0.9.99.2 lib/vagrant/action/general/validate.rb
vagrant-fixed-ssh-1.0.7 lib/vagrant/action/general/validate.rb
vagrant-1.0.7 lib/vagrant/action/general/validate.rb
vagrant-1.0.6 lib/vagrant/action/general/validate.rb
boxcar-0.10005.1 lib/vagrant/action/general/validate.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/vagrant-1.0.5/lib/vagrant/action/general/validate.rb
vagrant-1.0.5 lib/vagrant/action/general/validate.rb
vagrant-1.0.4 lib/vagrant/action/general/validate.rb