class Resque::Failure::Failbot
Public Class Methods
count()
click to toggle source
# File lib/failbot/resque_failure_backend.rb, line 14 def self.count # Fake it for now. Stat[:failed] end
url()
click to toggle source
# File lib/failbot/resque_failure_backend.rb, line 6 def self.url if ENV['RAILS_ENV'] == 'staging' "http://haystack-staging.githubapp.com/types/exception" else "http://haystack.githubapp.com/types/exception" end end
Public Instance Methods
save()
click to toggle source
# File lib/failbot/resque_failure_backend.rb, line 19 def save ::Failbot.report(exception, :worker => worker.to_s, :queue => queue.to_s, :job => payload['class'].to_s, :args => payload['args'].inspect) end