class Pennyworth::ListCommand
Public Instance Methods
execute()
click to toggle source
# File lib/pennyworth/commands/list_command.rb, line 20 def execute if @boxes_dir puts "Vagrant box definitions managed by pennyworth:" local_base_images.each do |b| puts " #{b}" end puts end puts "Available Vagrant boxes:" VagrantCommand.new.list.each do |box| puts " #{box}" end puts puts "Available VMs:" VagrantCommand.new.status.each do |vm| puts " #{vm}" end end