Class: Scheduler::ExceptionHandler
- Inherits:
-
Object
- Object
- Scheduler::ExceptionHandler
- Defined in:
- lib/scheduler_daemon/exception_handler.rb
Class Method Summary collapse
-
.handle_exception(exception, job, message) ⇒ Object
@@campfire_subdomain = ” @@campfire_username = ” @@campfire_password = ” @@campfire_room_name = ” @@campfire_room = nil.
Class Method Details
.handle_exception(exception, job, message) ⇒ Object
@@campfire_subdomain = ” @@campfire_username = ” @@campfire_password = ” @@campfire_room_name = ” @@campfire_room = nil
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/scheduler_daemon/exception_handler.rb', line 13 def self.handle_exception(exception, job, ) # If your team all hangs out in Campfire, you might want to try # something like Tinder here to write these messages out to campfire, # Such as: # # if Rails.env.production? || Rails.env.staging? # msg = "#{message}, see log for backtrace" # # unless @@campfire_room # campfire = Tinder::Campfire.new(@@campfire_subdomain, :ssl => true) # campfire.login(@@campfire_username, @@campfire_password) # @@campfire_room = campfire.find_room_by_name(@@campfire_room_name) # end # @@campfire_room.speak(msg) # end end |