class VagrantPlugins::OpenStack::Action::IsCreated
Public Class Methods
new(app, env)
click to toggle source
# File lib/vagrant-openstack/action/is_created.rb, line 5 def initialize(app, env) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/vagrant-openstack/action/is_created.rb, line 9 def call(env) env[:result] = env[:machine].state.id != :not_created @app.call(env) end