Fixed some formatting issues with `vagrant status`

This commit is contained in:
Mitchell Hashimoto 2010-05-16 18:11:51 -07:00
parent 5be932bf6c
commit 50086423ee
1 changed files with 4 additions and 1 deletions

View File

@ -39,6 +39,7 @@ module Vagrant
# No specific VM was specified in a multi-vm environment, # No specific VM was specified in a multi-vm environment,
# so show short info for each VM # so show short info for each VM
show_list show_list
return
else else
# Set the VM to just be the root VM # Set the VM to just be the root VM
vm = env.vms.values.first vm = env.vms.values.first
@ -56,9 +57,11 @@ module Vagrant
def show_list def show_list
wrap_output do wrap_output do
puts Translator.t(:status_listing) puts Translator.t(:status_listing)
puts ""
env.vms.each do |name, vm| env.vms.each do |name, vm|
puts "#{name.ljust(20)}#{vm.state}" state = vm.created? ? vm.vm.state : "not created"
puts "#{name.to_s.ljust(30)}#{state}"
end end
end end
end end