From 5b18a6525ddad9e6c3f098330e56e75f366e768f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 9 Jul 2012 19:51:54 -0700 Subject: [PATCH] `vagrant box remove` uses new API --- plugins/commands/box/command/remove.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/commands/box/command/remove.rb b/plugins/commands/box/command/remove.rb index 1ea125ac5..74d28e0d1 100644 --- a/plugins/commands/box/command/remove.rb +++ b/plugins/commands/box/command/remove.rb @@ -8,17 +8,17 @@ module VagrantPlugins options = {} opts = OptionParser.new do |opts| - opts.banner = "Usage: vagrant box remove " + opts.banner = "Usage: vagrant box remove " end # Parse the options argv = parse_options(opts) return if !argv - raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1 + raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 2 - b = @env.boxes.find(argv[0]) + b = @env.boxes.find(argv[0], argv[1].to_sym) raise Vagrant::Errors::BoxNotFound, :name => argv[0] if !b - b.destroy + b.destroy! # Success, exit status 0 0