def images
begin
headers = ActiveSupport::OrderedHash.new
headers[:id] = "ID"
headers[:name] = "Name"
headers[:environment] = "Environment"
headers[:os] = "OS"
headers[:os_version] = "OS Version"
headers[:arch] = "Arch"
headers[:description] = "Description"
collection = @options[:environment].nil? ? Aeolus::CLI::Image.all : Aeolus::CLI::Image.find(:all, :from => Aeolus::CLI::Base.site.path + "/environments/" + @options[:environment] + "/images.xml")
print_collection(collection, headers)
quit(0)
rescue => e
handle_exception(e)
end
end