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