Sha256: aff3694c48f18ee0fe8920132f4ac1d27dd99faed18e78b8ed98d5689e8ea602
Contents?: true
Size: 419 Bytes
Versions: 20
Compression:
Stored size: 419 Bytes
Contents
module VagrantPlugins module Cloudstack 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 & 1 rubygems