Class: Resque::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Resque::Server
- Defined in:
- lib/resque/server.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.tabs ⇒ Object
218 219 220 |
# File 'lib/resque/server.rb', line 218 def self.tabs @tabs ||= ["Overview", "Working", "Failed", "Queues", "Workers", "Stats"] end |
Instance Method Details
#resque ⇒ Object
214 215 216 |
# File 'lib/resque/server.rb', line 214 def resque Resque end |
#show(page, layout = true) ⇒ Object
120 121 122 123 124 125 126 |
# File 'lib/resque/server.rb', line 120 def show(page, layout = true) begin erb page.to_sym, {:layout => layout}, :resque => Resque rescue Errno::ECONNREFUSED erb :error, {:layout => false}, :error => "Can't connect to Mongo!" end end |