Sha256: 309fcc905a2979db5ab6dfa3c5f325e538f8d9dd9c4cd53a96108c923751605c

Contents?: true

Size: 365 Bytes

Versions: 6

Compression:

Stored size: 365 Bytes

Contents

module Vagrant
  module LXC
    module Action
      class IsRunning < BaseAction
        def call(env)
          env[:result] = env[:machine].state.running?

          # Call the next if we have one (but we shouldn't, since this
          # middleware is built to run with the Call-type middlewares)
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vagrant-lxc-0.2.0 lib/vagrant-lxc/action/is_running.rb
vagrant-lxc-0.1.1 lib/vagrant-lxc/action/is_running.rb
vagrant-lxc-0.1.0 lib/vagrant-lxc/action/is_running.rb
vagrant-lxc-0.0.3 lib/vagrant-lxc/action/is_running.rb
vagrant-lxc-0.0.2 lib/vagrant-lxc/action/is_running.rb
vagrant-lxc-0.0.1 lib/vagrant-lxc/action/is_running.rb