diff --git a/resque.coffee b/resque.coffee index 9f5da98..c287def 100644 --- a/resque.coffee +++ b/resque.coffee @@ -20,22 +20,6 @@ module.exports = (robot) -> .get() (err, res, body) -> msg.send format_stats parse_stats body -module.exports = (robot) -> - robot.respond /ptrc_resque/i, (msg) -> - msg.send 'got ptrc' - msg.http('http://172.30.42.1:5678/workers/OptimisPTRC') - .get() (err, res, body) -> - html = body - msg.send parse_workers_stats(body).toString() - msg.send html - - -parse_workers_stats = (stats) -> - parser = new DOMParser() - xmlDoc = parser.parseFromString(stats,"text/xml") - xmlDoc.getElementsByClassName('queue-tag') - - parse_stats = (stats) -> details = {} handle_line = (line) ->