Add message about removing box so something is clearly happening
This commit is contained in:
parent
ec995b5ddf
commit
b3571eb5bb
|
@ -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 <name> <provider>"
|
||||
opts = OptionParser.new do |o|
|
||||
o.banner = "Usage: vagrant box remove <name> <provider>"
|
||||
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
|
||||
|
|
|
@ -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: |-
|
||||
|
|
Loading…
Reference in New Issue