Sha256: fb65ef89997bf95698ea75cf814de64b0e60ca9924d8669141111d768779387c

Contents?: true

Size: 299 Bytes

Versions: 3

Compression:

Stored size: 299 Bytes

Contents

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-openstack-provider-0.1.2 lib/vagrant-openstack-provider/action/is_created.rb
vagrant-openstack-provider-0.1.1 lib/vagrant-openstack/action/is_created.rb
vagrant-openstack-provider-0.1 lib/vagrant-openstack/action/is_created.rb