Class: Resque::Cli::Worker

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

Instance Method Summary collapse

Instance Method Details

#listObject



31
32
33
# File 'lib/resque/cli.rb', line 31

def list
  puts ::Resque.workers
end

#remove(worker_id) ⇒ Object



41
42
43
# File 'lib/resque/cli.rb', line 41

def remove(worker_id)
  puts ::Resque.remove_worker(worker_id)
end

#workingObject



36
37
38
# File 'lib/resque/cli.rb', line 36

def working
  puts ::Resque.working
end