Sha256: b42fe799343672eaaa8198a11593a94de79795444951a897c9c349b804971ff1

Contents?: true

Size: 299 Bytes

Versions: 9

Compression:

Stored size: 299 Bytes

Contents

module VagrantPlugins
  module OpenStack
    module Action
      class IsSuspended
        def initialize(app, env)
          @app = app
        end

        def call(env)
          env[:result] = env[:machine].state.id == :suspended
          @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_suspended.rb
vagrant-openstack-plugin-0.12.0 lib/vagrant-openstack-plugin/action/is_suspended.rb
vagrant-openstack-plugin-0.11.1 lib/vagrant-openstack-plugin/action/is_suspended.rb
vagrant-openstack-plugin-0.11.0 lib/vagrant-openstack-plugin/action/is_suspended.rb
vagrant-openstack-plugin-0.10.0 lib/vagrant-openstack-plugin/action/is_suspended.rb
vagrant-openstack-plugin-0.9.1 lib/vagrant-openstack-plugin/action/is_suspended.rb
vagrant-openstack-plugin-0.9.0 lib/vagrant-openstack-plugin/action/is_suspended.rb
vagrant-openstack-plugin-0.8.0 lib/vagrant-openstack-plugin/action/is_suspended.rb
vagrant-openstack-plugin-0.7.0 lib/vagrant-openstack-plugin/action/is_suspended.rb