Class: HealthChecks

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/liquid/health_checks.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHealthChecks

Returns a new instance of HealthChecks.



10
11
12
# File 'lib/liquid/health_checks.rb', line 10

def initialize
  @registry = HealthCheckRegistry.new
end

Instance Attribute Details

#registryObject (readonly)

Returns the value of attribute registry.



8
9
10
# File 'lib/liquid/health_checks.rb', line 8

def registry
  @registry
end

Class Method Details

.register(name, handler) ⇒ Object



18
19
20
# File 'lib/liquid/health_checks.rb', line 18

def self.register(name, handler)
  registry.register(name, handler)
end

.registryObject



14
15
16
# File 'lib/liquid/health_checks.rb', line 14

def self.registry
  instance.registry
end

.runObject



22
23
24
# File 'lib/liquid/health_checks.rb', line 22

def self.run
  registry.run_health_checks
end