about summary refs log tree commit diff
path: root/lib/presque/ControlHandler.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-24 11:14:36 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-24 11:14:36 +0200
commit999158c590db8e0b5da514348ee1315531e3215d (patch)
tree1146437f698357d384b2f2a3b1a7acc87016b84b /lib/presque/ControlHandler.pm
parentrename roles (diff)
downloadpresque-999158c590db8e0b5da514348ee1315531e3215d.tar.gz
some POD update, code cleanup, ...
Diffstat (limited to 'lib/presque/ControlHandler.pm')
-rw-r--r--lib/presque/ControlHandler.pm13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/presque/ControlHandler.pm b/lib/presque/ControlHandler.pm
index ccfc663..7feadc8 100644
--- a/lib/presque/ControlHandler.pm
+++ b/lib/presque/ControlHandler.pm
@@ -4,12 +4,11 @@ use JSON;
 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 post/]},
-);
+  'presque::Role::Queue::WithQueueName' => {methods => [qw/get post/]},;
 
 __PACKAGE__->asynchronous(1);
 
@@ -81,7 +80,7 @@ presque::ControlHandler
 
 =head1 DESCRIPTION
 
-By default, when a queue is created, the status is set to 'open'. When a queue is set to 'stop', no job will be fetched from the queue.
+By default, when a queue is created, the status is set to 'open'. When a queue is set to 'stop', no job will be fetched from the queue, but it's still possible to add new jobs.
 
 =head1 METHODS
 
@@ -91,7 +90,7 @@ By default, when a queue is created, the status is set to 'open'. When a queue i
 
 =item path
 
-/control/queuename
+/control/:queuename
 
 =item request
 
@@ -111,7 +110,7 @@ content : {"status":"0","queue":"foo"}
 
 =item path
 
-/control/queuename
+/control/:queuename
 
 =item request