lib/vagrant-rimu/actions/is_created.rb
require 'vagrant-rimu/actions/abstract_action'
module VagrantPlugins
module Rimu
module Actions
class IsCreated < AbstractAction
def initialize(app, _env)
@app = app
end
def execute(env)
env[:result] = env[:machine].state.id != :not_created
@app.call(env)
end
end
end
end
end