Sha256: 7cd91285cd23e00548e993de9d39bda46d1e45939c72acf391edd78be7b1390e

Contents?: true

Size: 294 Bytes

Versions: 9

Compression:

Stored size: 294 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 == :active
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
vagrant-openstack-plugin-tom-0.12.0 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.12.0 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.11.1 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.11.0 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.10.0 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.9.1 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.9.0 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.8.0 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.7.0 lib/vagrant-openstack-plugin/action/is_created.rb