Class: Resque::Cli::Queue
- Inherits:
-
Thor
- Object
- Thor
- Resque::Cli::Queue
- Defined in:
- lib/resque/cli.rb
Instance Method Summary collapse
- #list ⇒ Object
- #peek(queue_name, start = 0, count = 1) ⇒ Object
- #remove(queue_name) ⇒ Object
- #size(queue_name) ⇒ Object
Instance Method Details
#list ⇒ Object
9 10 11 |
# File 'lib/resque/cli.rb', line 9 def list puts ::Resque.queues end |
#peek(queue_name, start = 0, count = 1) ⇒ Object
19 20 21 |
# File 'lib/resque/cli.rb', line 19 def peek(queue_name, start = 0, count = 1) puts ::Resque.peek(queue_name, start, count) end |
#remove(queue_name) ⇒ Object
14 15 16 |
# File 'lib/resque/cli.rb', line 14 def remove(queue_name) puts ::Resque.remove_queue(queue_name) end |
#size(queue_name) ⇒ Object
24 25 26 |
# File 'lib/resque/cli.rb', line 24 def size(queue_name) puts ::Resque.size(queue_name) end |