Sha256: 2ac5e9736f6080eb1111d691b638b1ff73cc9cdfbf543676b586c368311a3d00
Contents?: true
Size: 398 Bytes
Versions: 4
Compression:
Stored size: 398 Bytes
Contents
require 'singleton' java_import 'com.codahale.metrics.health.HealthCheckRegistry' class HealthChecks include Singleton attr_reader :registry def initialize @registry = HealthCheckRegistry.new end def self.registry instance.registry end def self.register(name, handler) registry.register(name, handler) end def self.run registry.run_health_checks end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
liquid-ext-2.0.3 | lib/liquid/health_checks.rb |
liquid-ext-2.0.2 | lib/liquid/health_checks.rb |
liquid-ext-2.0.1 | lib/liquid/health_checks.rb |
liquid-ext-2.0.0 | lib/liquid/health_checks.rb |