Sha256: 72fbcca2fb83257e58d8cf6ac489dabc9049473cc2c31351594ee4e5e542a321
Contents?: true
Size: 408 Bytes
Versions: 25
Compression:
Stored size: 408 Bytes
Contents
module VagrantPlugins module AWS 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
25 entries across 25 versions & 8 rubygems