diff --git a/plugins/commands/box/command/remove.rb b/plugins/commands/box/command/remove.rb index ceb619b1a..43a7bc77e 100644 --- a/plugins/commands/box/command/remove.rb +++ b/plugins/commands/box/command/remove.rb @@ -5,10 +5,8 @@ module VagrantPlugins module Command class Remove < Vagrant.plugin("2", :command) def execute - options = {} - - opts = OptionParser.new do |opts| - opts.banner = "Usage: vagrant box remove " + opts = OptionParser.new do |o| + o.banner = "Usage: vagrant box remove " end # Parse the options @@ -25,6 +23,9 @@ module VagrantPlugins end raise Vagrant::Errors::BoxNotFound, :name => argv[0] if !b + @env.ui.info(I18n.t("vagrant.commands.box.removing", + :name => argv[0], + :provider => argv[1])) b.destroy! # Success, exit status 0 diff --git a/templates/locales/en.yml b/templates/locales/en.yml index b0459f50c..2c243c2dd 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -391,6 +391,8 @@ en: vm_not_running: "VM is not currently running. Please bring it up to run this command." box: no_installed_boxes: "There are no installed boxes! Use `vagrant box add` to add some." + removing: |- + Removing box '%{name}' with provider '%{provider}'... destroy: confirmation: "Are you sure you want to destroy the '%{name}' VM? [y/N] " will_not_destroy: |-