Sha256: ad0b4b749455699cea445257593c5175266d280ce3244871676323504250814e

Contents?: true

Size: 292 Bytes

Versions: 8

Compression:

Stored size: 292 Bytes

Contents

module VagrantPlugins
  module Vmpooler
    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

8 entries across 8 versions & 1 rubygems

Version Path
vagrant-vmpooler-0.2.0 lib/vagrant-vmpooler/action/is_paused.rb
vagrant-vmpooler-0.1.9 lib/vagrant-vmpooler/action/is_paused.rb
vagrant-vmpooler-0.1.8 lib/vagrant-vmpooler/action/is_paused.rb
vagrant-vmpooler-0.1.7 lib/vagrant-vmpooler/action/is_paused.rb
vagrant-vmpooler-0.1.6 lib/vagrant-vmpooler/action/is_paused.rb
vagrant-vmpooler-0.1.5 lib/vagrant-vmpooler/action/is_paused.rb
vagrant-vmpooler-0.1.4 lib/vagrant-vmpooler/action/is_paused.rb
vagrant-vmpooler-0.1.2 lib/vagrant-vmpooler/action/is_paused.rb