Class: ResqueWeb::StatsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ResqueWeb::StatsController
- Defined in:
- app/controllers/resque_web/stats_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'app/controllers/resque_web/stats_controller.rb', line 5 def index redirect_to action: "resque" end |
#keys ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'app/controllers/resque_web/stats_controller.rb', line 23 def keys respond_to do |format| format.html do if params[:id] render 'key' else render 'keys' end end format.json { render json: Resque.keys.sort } end end |
#redis ⇒ Object
16 17 18 19 20 21 |
# File 'app/controllers/resque_web/stats_controller.rb', line 16 def redis respond_to do |format| format.html format.json { render json: Hash[Resque.redis.info.sort] } end end |
#resque ⇒ Object
9 10 11 12 13 14 |
# File 'app/controllers/resque_web/stats_controller.rb', line 9 def resque respond_to do |format| format.html format.json { render json: Hash[Resque.info.sort] } end end |