lib/backup/notifier/twitter.rb in backup-3.0.5 vs lib/backup/notifier/twitter.rb in backup-3.0.6

- old
+ new

@@ -57,17 +57,17 @@ ## # Sends a tweet informing the user that the backup operation # proceeded without any errors def notify_success! - twitter_client.update("[Backup::Succeeded] #{model.label} (#{model.trigger})") + twitter_client.update("[Backup::Succeeded] #{model.label} (#{ File.basename(Backup::Model.file) })") end ## # Sends a tweet informing the user that the backup operation - # raised an exception and will send the user the error details + # raised an exception def notify_failure!(exception) - twitter_client.update("[Backup::Failed] #{model.label} (#{model.trigger})") + twitter_client.update("[Backup::Failed] #{model.label} (#{ File.basename(Backup::Model.file) })") end ## # Configures the Twitter object by passing in the @consumer_key, @consumer_secret # @oauth_token and @oauth_token_secret. Instantiates and sets the @twitter_client object