require 'log4r' require 'json' require 'vagrant-skytap/setup_helper' module VagrantPlugins module Skytap module Action class SetUpVm def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant_skytap::action::set_up_vm") end def call(env) unless VmProperties.read(env[:machine].data_dir) SetupHelper.run!(env, env[:environment]) end @app.call(env) end end end end end