core: ability to set env var for silent internal upgrade [GH-3870]

This commit is contained in:
Mitchell Hashimoto 2014-10-23 22:39:49 -07:00
parent cc01f01684
commit 7d6f9a60b2
1 changed files with 4 additions and 1 deletions

View File

@ -824,7 +824,10 @@ module Vagrant
# This upgrades a home directory that was in the v1.1 format to the
# v1.5 format. It will raise exceptions if anything fails.
def upgrade_home_path_v1_1
if !ENV["VAGRANT_UPGRADE_SILENT_1_5"]
@ui.ask(I18n.t("vagrant.upgrading_home_path_v1_5"))
end
collection = BoxCollection.new(
@home_path.join("boxes"), temp_dir_root: tmp_path)
collection.upgrade_v1_1_v1_5