Sha256: b7052c9c22be63d2889ade2c8400f30ad07bb5e10215feefe34aae1962d3843c
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
module VagrantPlugins module Cosmic 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-cosmic-0.2.0 | lib/vagrant-cosmic/action/is_created.rb |
vagrant-cosmic-0.1.0 | lib/vagrant-cosmic/action/is_created.rb |