Require Vagrant code right on the beginning of base box building process so it fails early
This commit is contained in:
parent
44bedfe7c6
commit
e10822df32
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue