core: BoxAdd UI looks better

This commit is contained in:
Mitchell Hashimoto 2014-01-24 12:54:31 -08:00
parent f0607c6df0
commit 8ab3ae1bef
1 changed files with 4 additions and 6 deletions

View File

@ -102,7 +102,8 @@ module Vagrant
version = env[:box_version]
env[:ui].output(I18n.t(
"vagrant.box_loading_metadata", name: original_url))
"vagrant.box_loading_metadata",
name: Array(original_url).first))
if original_url != url
env[:ui].detail(I18n.t(
"vagrant.box_expanding_url", url: url))
@ -291,9 +292,6 @@ module Vagrant
box_url = nil
urls.each do |url|
env[:ui].detail(I18n.t(
"vagrant.box_downloading", url: url))
begin
box_url = download(url, env)
break
@ -379,8 +377,8 @@ module Vagrant
# path as an instance variable so that the `#recover` method can
# access it.
if opts[:ui]
env[:ui].info(I18n.t(
"vagrant.actions.box.download.downloading",
env[:ui].detail(I18n.t(
"vagrant.box_downloading",
url: url))
if File.file?(d.destination)
env[:ui].info(I18n.t("vagrant.actions.box.download.resuming"))