Sha256: 6b83289a24fcc9412914e990e3cf29ac73586c049d36a30d17782672c64f31b9

Contents?: true

Size: 299 Bytes

Versions: 22

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

22 entries across 22 versions & 3 rubygems

Version Path
vagrant-openstack-cloud-provider-1.1.13 lib/vagrant-openstack-cloud-provider/action/is_created.rb
vagrant-openstack-cloud-provider-1.1.12 lib/vagrant-openstack-cloud-provider/action/is_created.rb
vagrant-openstack-cloud-provider-1.1.11 lib/vagrant-openstack-cloud-provider/action/is_created.rb
vagrant-openstack-cloud-provider-1.1.10 lib/vagrant-openstack-cloud-provider/action/is_created.rb
vagrant-openstack-cloud-provider-1.1.9 lib/vagrant-openstack-cloud-provider/action/is_created.rb
vagrant-openstack-cloud-provider-1.1.8 lib/vagrant-openstack-cloud-provider/action/is_created.rb
vagrant-openstack-cloud-provider-1.1.6 lib/vagrant-openstack-cloud-provider/action/is_created.rb
vagrant-openstack-cloud-provider-1.1.5 lib/vagrant-openstack-cloud-provider/action/is_created.rb
vagrant-openstack-cloud-provider-1.1.4 lib/vagrant-openstack-cloud-provider/action/is_created.rb
openstack-vagrant-1.1.3 lib/vagrant-openstack/action/is_created.rb
openstack-vagrant-1.1.2 lib/vagrant-openstack/action/is_created.rb
vagrant-openstack-plugin-0.6.1 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.6.0 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.5.0 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.4.1 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.3.0 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.2.2 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.2.1 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.2.0 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.1.3 lib/vagrant-openstack-plugin/action/is_created.rb