Class: VagrantPlugins::Skytap::Action::SetUpVm

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-skytap/action/set_up_vm.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ SetUpVm

Returns a new instance of SetUpVm.



31
32
33
34
# File 'lib/vagrant-skytap/action/set_up_vm.rb', line 31

def initialize(app, env)
  @app = app
  @logger = Log4r::Logger.new("vagrant_skytap::action::set_up_vm")
end

Instance Method Details

#call(env) ⇒ Object



36
37
38
39
40
41
# File 'lib/vagrant-skytap/action/set_up_vm.rb', line 36

def call(env)
  unless VmProperties.read(env[:machine].data_dir)
    SetupHelper.run!(env, env[:environment])
  end
  @app.call(env)
end