class HealthCheck::RabbitMQHealthCheck
Public Class Methods
check()
click to toggle source
# File lib/health_check/rabbitmq_health_check.rb, line 4 def self.check unless defined?(::Bunny) raise "Wrong configuration. Missing 'bunny' gem" end connection = Bunny.new(HealthCheck.rabbitmq_config) connection.start connection.close '' rescue Exception => e create_error 'rabbitmq', e.message end