Filter list command

This commit is contained in:
Brian Cain 2014-10-29 13:16:09 -07:00
parent b9c43f9695
commit 85d5eda24b

View file

@ -35,11 +35,12 @@ class CLI < Thor
if pattern
# Filtering VMs based on pattern
hosts = host_res.select { |i| i[/#{pattern}/] }
else
# list all vms
hosts = host_res
end
puts host_res
puts hosts
end
desc "release <HOSTNAME>", "Schedules a VM for deletion"