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-plugin-0.1.2 lib/vagrant-openstack-plugin/action/is_created.rb
vagrant-openstack-plugin-0.1.1 lib/vagrant-openstack/action/is_created.rb