commands/box: update looks prettier on output

This commit is contained in:
Mitchell Hashimoto 2014-01-24 18:23:14 -08:00
parent cf9004241e
commit 386938f0b1
2 changed files with 9 additions and 1 deletions

View File

@ -37,7 +37,13 @@ module VagrantPlugins
end
box = machine.box
update = box.has_update?(machine.config.vm.box_version)
version = machine.config.vm.box_version
machine.ui.output(I18n.t("vagrant.box_update_checking", name: box.name))
machine.ui.detail("Version constraints: #{version}")
machine.ui.detail("Provider: #{box.provider}")
update = box.has_update?(version)
if !update
machine.ui.success(I18n.t(
"vagrant.box_up_to_date_single",

View File

@ -51,6 +51,8 @@ en:
box_updating: |-
Updating '%{name}' with provider '%{provider}' from version
'%{old}' to '%{new}'...
box_update_checking: |-
Checking for updates to '%{name}'
box_up_to_date: |-
* '%{name}' (v%{version}) is up to date
box_up_to_date_single: |-