Sha256: 1accd75c291c3cdf56bc54d9cb30e8793f18d0bfc34873d5da1043ffed25df60
Contents?: true
Size: 453 Bytes
Versions: 23
Compression:
Stored size: 453 Bytes
Contents
# frozen_string_literal: true module VagrantPlugins module ProviderLibvirt module Action # This can be used with "Call" built-in to check if the machine # is running and branch in the middleware. class IsRunning def initialize(app, _env) @app = app end def call(env) env[:result] = env[:machine].state.id == :running @app.call(env) end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems