From 127c2a426fd123afdb7a2e6d39aebe0b60c3f12a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 24 Aug 2010 17:02:02 -0700 Subject: [PATCH] `vagrant box list` is back in business --- lib/vagrant/command/box.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/command/box.rb b/lib/vagrant/command/box.rb index 6da7542cb..c2e6e7617 100644 --- a/lib/vagrant/command/box.rb +++ b/lib/vagrant/command/box.rb @@ -24,7 +24,9 @@ module Vagrant desc "list", "Lists all installed boxes" def list - # TODO + boxes = Box.all(env).sort + return env.ui.warn("There are no installed boxes! Use `vagrant box add` to add some.") if boxes.empty? + boxes.each { |b| env.ui.info(b) } end end end