Class: Resque::Cli::Queue

Inherits:
Thor
  • Object
show all
Defined in:
lib/resque/cli.rb

Instance Method Summary collapse

Instance Method Details

#listObject



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