Sha256: 10663bee93a9920c486aee999f94c151ac36878101439302168269445f68381c
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
module VagrantPlugins module GQ 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-gq-0.1.2 | lib/vagrant-gq/action/is_created.rb |
vagrant-gq-0.1.1 | lib/vagrant-gq/action/is_created.rb |
vagrant-gq-0.1.0 | lib/vagrant-gq/action/is_created.rb |