lib/rackamole/alert/twitt.rb in rackamole-0.2.7 vs lib/rackamole/alert/twitt.rb in rackamole-0.2.8

- old
+ new

@@ -4,11 +4,11 @@ # Leverage twitter as a notification client. You can setup a private twitter account # and have your moled app twitt exception/perf alerts... class Twitt # Twitt an alert - def self.deliver_alert( logger, username, password, attrs ) - @twitt ||= Twitt.new( logger, username, password ) + def self.deliver_alert( logger, options, attrs ) + @twitt ||= Twitt.new( logger, options[:twitter][:username], options[:twitter][:password] ) @twitt.send_alert( attrs ) end # This class is used to send out moled twitter notification. This feature is enabled # by setting both :twitter_auth and twitt_on options on the Rack::Mole. When a moled \ No newline at end of file