Sha256: b79e1daffa5fce1d338dbc835c9d61f7d84ffc1081ef8b5b455a7826355519c2
Contents?: true
Size: 437 Bytes
Versions: 2
Compression:
Stored size: 437 Bytes
Contents
module VagrantPlugins module Cloudstack 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-cloudstack-1.3.0 | lib/vagrant-cloudstack/action/is_created.rb |
vagrant-cloudstack-1.2.0 | lib/vagrant-cloudstack/action/is_created.rb |