 # Author:
 #   kevwil, davidsulpy
 
-host = process.env.HUBOT_RABBITMQ_HOST
-scheme = process.env.HUBOT_RABBITMQ_SCHEME ?= 'http'
+url = process.env.HUBOT_RABBITMQ_HOST
 user = process.env.HUBOT_RABBITMQ_USER ?= 'guest'
 pwd = process.env.HUBOT_RABBITMQ_PWD ?= 'guest'
 virt = process.env.HUBOT_RABBITMQ_VIRT_HOST ?= '%2F'

    sub = msg.match[1]
    results = []
    msg
      .http("#{scheme}://#{host}/api/queues/#{virt}/#{sub}/bindings")
      .headers(Authorization: auth, Accept: 'application/json')
      .get() (err, res, body) ->
        if err

#   None
#
# Configuration:
#   HUBOT_RABBITMQ_ROOT_URL
#   HUBOT_RABBITMQ_USER (default is 'guest')
#   HUBOT_RABBITMQ_PWD (default is 'guest')
#   HUBOT_RABBITMQ_VIRT_HOST (defaults to '/')
#
# Commands:
#   hubot rabbit nodes - display list of cluster nodes (name, uptime)
