Sha256: 64493b55dad0b6dbbfc0610f5207932dbd685c39817b1d0cab86e2337da8aa5f
Contents?: true
Size: 422 Bytes
Versions: 20
Compression:
Stored size: 422 Bytes
Contents
module VagrantPlugins module OVirtProvider 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
20 entries across 20 versions & 2 rubygems