Sha256: 16a7c1e64c58c74219041413b247134d494dc45ea82e49a72759fa41f4ed8c3f
Contents?: true
Size: 870 Bytes
Versions: 9
Compression:
Stored size: 870 Bytes
Contents
require 'rollbar' module RollbarTest # :nodoc: def self.run return unless confirmed_token? puts 'Test sending to Rollbar...' result = Rollbar.info('Test message from rollbar:test') if result == 'error' puts error_message else puts success_message end end def self.confirmed_token? return true if Rollbar.configuration.access_token puts token_error_message false end def self.token_error_message 'Rollbar needs an access token configured. Check the README for instructions.' end def self.error_message 'Test failed! You may have a configuration issue, or you could be using a gem that\'s blocking the test. Contact support@rollbar.com if you need help troubleshooting.' end def self.success_message 'Testing rollbar with "rake rollbar:test". If you can see this, it works.' end end
Version data entries
9 entries across 9 versions & 1 rubygems