From 386938f0b105f4c4982ebb1b2402564c633e68cb Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 24 Jan 2014 18:23:14 -0800 Subject: [PATCH] commands/box: update looks prettier on output --- plugins/commands/box/command/update.rb | 8 +++++++- templates/locales/en.yml | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/commands/box/command/update.rb b/plugins/commands/box/command/update.rb index 75fd3a07c..6cfb85458 100644 --- a/plugins/commands/box/command/update.rb +++ b/plugins/commands/box/command/update.rb @@ -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", diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 5616620ca..c48c3ec07 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -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: |-