From c2d5b6f65d87662b1d06300bd096b69d1390d5a8 Mon Sep 17 00:00:00 2001 From: shunwen Date: Sat, 11 Jan 2014 00:51:02 +0900 Subject: [PATCH] Revert ptrc_resque command --- resque.coffee | 16 ---------------- 1 file changed, 16 deletions(-) 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) ->