commands/box: update looks prettier on output
This commit is contained in:
parent
cf9004241e
commit
386938f0b1
|
@ -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",
|
||||
|
|
|
@ -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: |-
|
||||
|
|
Loading…
Reference in New Issue