Rake Tasks - Hoptoad Notifier
Hi
Using hoptoad_notifier 2.3.9
How do I have rake tasks send notifications upon exceptions? What do I include, do?
require 'hoptoad_notifier'
require 'hoptoad_notifier/rails'
Do I also copy the api_key in the rake task?
Then>?
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Emma Lindsay on 20 Oct, 2010 06:25 PM
We do not automatically catch exceptions caused by rake tasks - but you can trigger exceptions manually with a call to notify_hoptoad:
notify_hoptoad(error) or notify_hoptoad(:error_message => "error message")
You need to require 'hoptoad_notifier', but you do not need to configure the API key if it is set for the rest of your app.
Hope this helps, and please get back to us if you continue to have any problems.
Matt Jankowski closed this discussion on 17 Jan, 2011 07:31 PM.