Fix the call to boxes#find for vagrant box commands

This commit is contained in:
Mitchell Hashimoto 2010-09-12 15:41:09 -06:00
parent 02cfb60387
commit f7f36bbba4

View File

@ -10,14 +10,14 @@ module Vagrant
desc "remove NAME", "Remove a box from the system"
def remove(name)
b = env.boxes.find(env, name)
b = env.boxes.find(name)
raise BoxNotFound.new(:name => name) if !b
b.destroy
end
desc "repackage NAME", "Repackage an installed box into a `.box` file."
def repackage(name)
b = env.boxes.find(env, name)
b = env.boxes.find(name)
raise BoxNotFound.new(:name => name) if !b
b.repackage
end