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