Skip to content

Instantly share code, notes, and snippets.

@mtrudel
Created August 5, 2009 15:36
Show Gist options
  • Save mtrudel/162763 to your computer and use it in GitHub Desktop.
Save mtrudel/162763 to your computer and use it in GitHub Desktop.
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