 #   hubot what are the instance defaults - Show the default values for each site->env combination
 #   hubot terminate instance i-abcd1234 - Terminate a instance by instance id
 #   hubot who can do stuff with instances - Show the whitelisted channels with access to instance actions
+#   hubot list images - List all images
+#   hubot list images for worker - List all images for role worker
+#   hubot list active images - Lits all active images
 
 util = require 'util'
 {sprintf} = require 'sprintf'

        return

      cb null


  whitelist_respond robot, /list instances [io]n ([a-z]+) ([a-z]+) order by (.+)/i, (msg) ->
    list_instances robot, host, msg.match[1], msg.match[2], default_role, token, send_instances_list_cb(msg, msg.match[3])

  whitelist_respond robot, /list images/i, (msg) ->
    list_images robot, host, '', '', token, send_images_list_cb(msg)

  whitelist_respond robot, /list images for ([a-z]+)$/i, (msg) ->
    list_images robot, host, msg.match[1], '', token, send_images_list_cb(msg)

  whitelist_respond robot, /list active images/i, (msg) ->
    list_images robot, host, '', 'true', token, send_images_list_cb(msg)

whitelist_respond = (robot, pattern, cb) ->
  robot.respond pattern, (msg) ->
