class Object
Constants
- RAILS_DEFAULT_LOGGER
Public Class Methods
display_error_message(exception)
Also aliased as: display_error_message_old
Alias for: display_error_message_silent
display_error_message_silent(exception)
click to toggle source
# File lib/airbrake/rails3_tasks.rb, line 9 def display_error_message_silent(exception) puts exception end
Also aliased as: display_error_message
Public Instance Methods
get_heroku_vars()
click to toggle source
# File lib/airbrake/shared_tasks.rb, line 32 def get_heroku_vars config = `heroku config --shell` array_of_vars = config.split.map do |var| var.partition("=").tap {|part| part.delete_at(1)} end.flatten @heroku_vars = Hash[*array_of_vars] end
stub_rake_exception_handling!()
click to toggle source
# File lib/airbrake/rails3_tasks.rb, line 4 def stub_rake_exception_handling! # Override error handling in Rake so we don't clutter STDERR # with unnecesarry stack trace Rake.application.instance_eval do class << self def display_error_message_silent(exception) puts exception end alias_method :display_error_message_old, :display_error_message alias_method :display_error_message, :display_error_message_silent end end end
unstub_rake_exception_handling!()
click to toggle source
# File lib/airbrake/rails3_tasks.rb, line 18 def unstub_rake_exception_handling! # Turns Rake exception handling back to normal Rake.application.instance_eval do class << self def display_error_message_silent(exception) display_error_message_old(exception) end end end end
wait_for_threads()
click to toggle source
# File lib/airbrake/rails3_tasks.rb, line 39 def wait_for_threads # if using multiple threads, we have to wait for # them to finish if GirlFriday.status.empty? Thread.list.each do |thread| thread.join unless thread == Thread.current end else GirlFriday.shutdown! end end