class VagrantPlugins::OVirtProvider::Action::IsCreated
Public Class Methods
new(app, env)
click to toggle source
# File lib/vagrant-ovirt4/action/is_created.rb, line 7 def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant_ovirt4::action::is_created") end
Public Instance Methods
call(env)
click to toggle source
# File lib/vagrant-ovirt4/action/is_created.rb, line 12 def call(env) env[:result] = env[:machine].state.id != :not_created @app.call(env) end