Permalink
Browse files

Revert ptrc_resque command

  • Loading branch information...
1 parent c3af3a8 commit c2d5b6f65d87662b1d06300bd096b69d1390d5a8 @shunwen shunwen committed Jan 10, 2014
Showing with 0 additions and 16 deletions.
  1. +0 −16 resque.coffee
View
@@ -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) ->

0 comments on commit c2d5b6f

Please sign in to comment.