From c43bd27ffe7f69e0718f212aff32d7db8f8e6fc8 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Fri, 11 Apr 2014 10:05:03 +0200 Subject: [PATCH] print version when removing a specific box Example: $ vagrant box remove --box-version 0.2.9 berendt/ubuntu-14.04-amd64 Removing box 'berendt/ubuntu-14.04-amd64' with provider 'virtualbox' in version '0.2.9'... --- lib/vagrant/action/builtin/box_remove.rb | 3 ++- templates/locales/en.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/action/builtin/box_remove.rb b/lib/vagrant/action/builtin/box_remove.rb index a62478a4e..2f330613a 100644 --- a/lib/vagrant/action/builtin/box_remove.rb +++ b/lib/vagrant/action/builtin/box_remove.rb @@ -73,7 +73,8 @@ module Vagrant env[:ui].info(I18n.t("vagrant.commands.box.removing", :name => box.name, - :provider => box.provider)) + :provider => box.provider, + :version => box.version)) box.destroy! # Passes on the removed box to the rest of the middleware chain diff --git a/templates/locales/en.yml b/templates/locales/en.yml index d8727cd5e..4fb03396a 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -1168,7 +1168,7 @@ en: box: no_installed_boxes: "There are no installed boxes! Use `vagrant box add` to add some." removing: |- - Removing box '%{name}' with provider '%{provider}'... + Removing box '%{name}' with provider '%{provider}' in version '%{version}'... destroy: confirmation: "Are you sure you want to destroy the '%{name}' VM? [y/N] " will_not_destroy: |-