Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert ptrc_resque command

  • Loading branch information...
commit c2d5b6f65d87662b1d06300bd096b69d1390d5a8 1 parent c3af3a8
shunwen authored
Showing with 0 additions and 16 deletions.
  1. +0 −16 resque.coffee
View
16 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) ->
Please sign in to comment.
Something went wrong with that request. Please try again.