Sha256: 83d4605969a296c3843bf3bb290dba3ea0f626604be74a2d0ba8cd59c9832874
Contents?: true
Size: 408 Bytes
Versions: 53
Compression:
Stored size: 408 Bytes
Contents
module VagrantPlugins module MCS 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
53 entries across 53 versions & 1 rubygems