Sha256: e11a30afbe076aa6b393db0ffcb9e8c3e0fff13b0aa44e2a95773b2e79f70068

Contents?: true

Size: 308 Bytes

Versions: 10

Compression:

Stored size: 308 Bytes

Contents

module Vagrant
  class Action
    module Env
      # A middleware which simply halts if the environment is erroneous.
      class ErrorHalt
        def initialize(app,env)
          @app = app
        end

        def call(env)
          @app.call(env) if !env.error?
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagrantup-0.5.4 lib/vagrant/action/env/error_halt.rb
vagrantup-0.5.3 lib/vagrant/action/env/error_halt.rb
vagrantup-0.5.2 lib/vagrant/action/env/error_halt.rb
vagrantup-0.5.1 lib/vagrant/action/env/error_halt.rb
vagrantup-0.5.0 lib/vagrant/action/env/error_halt.rb
vagrant-0.5.4 lib/vagrant/action/env/error_halt.rb
vagrant-0.5.3 lib/vagrant/action/env/error_halt.rb
vagrant-0.5.2 lib/vagrant/action/env/error_halt.rb
vagrant-0.5.1 lib/vagrant/action/env/error_halt.rb
vagrant-0.5.0 lib/vagrant/action/env/error_halt.rb