Sha256: 5384097da337e7f9addb71517014784e283b6c0491c326d29c43eba1755eddaa

Contents?: true

Size: 293 Bytes

Versions: 9

Compression:

Stored size: 293 Bytes

Contents

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

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