Permalink
Browse files

add POD

  • Loading branch information...
1 parent 9e851fb commit 07597ec011da0c8a0158faefe1f26c7b3b21ea69 @fcuny committed Jun 24, 2010
Showing with 28 additions and 4 deletions.
  1. +28 −4 lib/presque/JobQueueHandler.pm
@@ -3,12 +3,11 @@ package presque::JobQueueHandler;
use Moose;
extends 'Tatsumaki::Handler';
-with (
- 'presque::Role::QueueName',
+with
+ 'presque::Role::Queue::Names',
'presque::Role::Error',
'presque::Role::Response',
- 'presque::Role::RequireQueue' => {methods => [qw/get/]},
-);
+ 'presque::Role::Queue::WithQueueName' => {methods => [qw/get/]};
__PACKAGE__->asynchronous(1);
@@ -50,10 +49,35 @@ presque::JobQueueHandler
=head1 SYNOPSIS
+ # grab info from a queue
+ curl http://localhost:5000/j/queuename
+
=head1 DESCRIPTION
Return some informations about a queue.
+=head1 METHODS
+
+=head2 GET
+
+=over 4
+
+=item path
+
+/j/:queuename
+
+=item request
+
+=item response
+
+content-type: application/json
+
+code: 200
+
+content : {"queue_name":"foo","job_count":"0","job_processed":"127","job_failed":"37"
+
+=back
+
=head1 AUTHOR
franck cuny E<lt>franck@lumberjaph.netE<gt>

0 comments on commit 07597ec

Please sign in to comment.