Sha256: f9b82787260073cac0fc4805dcc3575cdfd7dca33fd9a260d243ffef6de221b4

Contents?: true

Size: 294 Bytes

Versions: 8

Compression:

Stored size: 294 Bytes

Contents

module VagrantPlugins
  module Vmpooler
    module Action
      class IsCreated
        def initialize(app, env)
          @app = app
        end

        def call(env)
          env[:result] = env[:machine].state.id == :created
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vagrant-vmpooler-0.2.0 lib/vagrant-vmpooler/action/is_created.rb
vagrant-vmpooler-0.1.9 lib/vagrant-vmpooler/action/is_created.rb
vagrant-vmpooler-0.1.8 lib/vagrant-vmpooler/action/is_created.rb
vagrant-vmpooler-0.1.7 lib/vagrant-vmpooler/action/is_created.rb
vagrant-vmpooler-0.1.6 lib/vagrant-vmpooler/action/is_created.rb
vagrant-vmpooler-0.1.5 lib/vagrant-vmpooler/action/is_created.rb
vagrant-vmpooler-0.1.4 lib/vagrant-vmpooler/action/is_created.rb
vagrant-vmpooler-0.1.2 lib/vagrant-vmpooler/action/is_created.rb