Sha256: ee047d08c0f8968d3ff4232e2288bf34bc3bab6142512d5aa63155dbf8053ddc

Contents?: true

Size: 507 Bytes

Versions: 31

Compression:

Stored size: 507 Bytes

Contents

module VagrantPlugins
  module Parallels
    module Action
      class Created
        def initialize(app, env)
          @app = app
        end

        def call(env)
          # Set the result to be true if the machine is created.
          env[:result] = (env[:machine].state.id != :not_created)

          # Call the next if we have one (but we shouldn't, since this
          # middleware is built to run with the Call-type middlewares)
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
vagrant-parallels-1.0.9.rc1 lib/vagrant-parallels/action/created.rb
vagrant-parallels-1.0.8 lib/vagrant-parallels/action/created.rb
vagrant-parallels-1.0.7 lib/vagrant-parallels/action/created.rb
vagrant-parallels-1.0.6 lib/vagrant-parallels/action/created.rb
vagrant-parallels-1.0.6.rc1 lib/vagrant-parallels/action/created.rb
vagrant-parallels-1.0.5 lib/vagrant-parallels/action/created.rb
vagrant-parallels-1.0.4 lib/vagrant-parallels/action/created.rb
vagrant-parallels-1.0.3 lib/vagrant-parallels/action/created.rb
vagrant-parallels-1.0.2 lib/vagrant-parallels/action/created.rb
vagrant-parallels-1.0.1 lib/vagrant-parallels/action/created.rb
vagrant-parallels-1.0.0 lib/vagrant-parallels/action/created.rb
vagrant-parallels-0.2.2 lib/vagrant-parallels/action/created.rb
vagrant-parallels-0.2.2.rc1 lib/vagrant-parallels/action/created.rb
vagrant-parallels-0.2.1 lib/vagrant-parallels/action/created.rb
vagrant-parallels-0.2.0 lib/vagrant-parallels/action/created.rb
vagrant-parallels-0.1.3 lib/vagrant-parallels/action/created.rb
vagrant-parallels-0.1.2 lib/vagrant-parallels/action/created.rb
vagrant-parallels-0.1.1 lib/vagrant-parallels/action/created.rb
vagrant-parallels-0.1.0 lib/vagrant-parallels/action/created.rb
vagrant-parallels-0.0.9 lib/vagrant-parallels/action/created.rb