class Resque::Failure::Airbrake

Public Class Methods

configure(&block) click to toggle source
# File lib/resque/failure/airbrake.rb, line 10
def self.configure(&block)
  Resque.logger.warn "This actually sets global Airbrake configuration, "            "which is probably not what you want. This will be gone in 2.0."
  Resque::Failure.backend = self
  ::Airbrake.configure(&block)
end
count(queue = nil, class_name = nil) click to toggle source
# File lib/resque/failure/airbrake.rb, line 17
def self.count(queue = nil, class_name = nil)
  # We can't get the total # of errors from Airbrake so we fake it
  # by asking Resque how many errors it has seen.
  Stat[:failed]
end

Public Instance Methods

save() click to toggle source
# File lib/resque/failure/airbrake.rb, line 23
def save
  ::Airbrake.notify_or_ignore(exception,
      :parameters => {
      :payload_class => payload['class'].to_s,
      :payload_args => payload['args'].inspect
      }
    )
end