Created
August 5, 2009 15:36
-
-
Save mtrudel/162763 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initialization do | |
HoptoadNotifier.configure do |config| | |
config.api_key = COMPONENTS.hoptoad_notifier['api_key'] | |
end | |
end | |
methods_for :dialplan do | |
def watched_by_hoptoad(args = nil, &block) | |
begin | |
yield | |
rescue Exception => e | |
HoptoadNotifier.notify( | |
error_class => 'Adhearsion Error', | |
error_message => e.message | |
) | |
end` | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment