From e10822df325d01e094ad7c33362776705bd56c9e Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Mon, 8 Jul 2013 10:47:07 -0300 Subject: [PATCH] Require Vagrant code right on the beginning of base box building process so it fails early --- tasks/boxes.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/boxes.rake b/tasks/boxes.rake index 2b4e030..c760444 100644 --- a/tasks/boxes.rake +++ b/tasks/boxes.rake @@ -4,6 +4,8 @@ load 'tasks/boxes.v2.rake' class BuildGenericBoxTaskV3 < BuildGenericBoxTaskV2 def build + require 'vagrant' + check_if_box_has_been_built! FileUtils.mkdir_p 'boxes/temp' unless File.exist? 'base/temp' @@ -26,7 +28,6 @@ class BuildGenericBoxTaskV3 < BuildGenericBoxTaskV2 end def finalize - require 'vagrant' auth_key = Vagrant.source_root.join('keys', 'vagrant.pub').expand_path.to_s run 'finalize', @arch, @release, auth_key end