Sha256: d36d9a256b497d54f670cd50c77279335ca721fa560939cfdf8e3326e5bc8b68
Contents?: true
Size: 994 Bytes
Versions: 3
Compression:
Stored size: 994 Bytes
Contents
require 'hockeybrake/configuration' require 'hockeybrake/hockey_log_exception' require 'hockeybrake/hockey_log' require 'hockeybrake/hockey_sender' require 'hockeybrake/hockey_sender_injector' module HockeyBrake class << self def configure # receive the configuration yield(configuration) # check if we have resque support if self.configuration.no_resque_handler == false # Load optional modules for resque support and configure the resque handler for # us if needed begin require 'resque/failure/multiple' require 'resque/failure/airbrake' require 'resque/failure/redis' Resque::Failure::Multiple.classes = [Resque::Failure::Redis, Resque::Failure::Airbrake] Resque::Failure.backend = Resque::Failure::Multiple rescue LoadError # No resquem it's ok end end end def configuration @configuration ||= Configuration.new end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hockeybrake-0.0.8 | lib/hockeybrake.rb |
hockeybrake-0.0.7 | lib/hockeybrake.rb |
hockeybrake-0.0.6 | lib/hockeybrake.rb |