Module: HealthcheckEndpoint
- Defined in:
- lib/healthcheck_endpoint.rb,
lib/healthcheck_endpoint/core.rb,
lib/healthcheck_endpoint/version.rb,
lib/healthcheck_endpoint/resolver.rb,
lib/healthcheck_endpoint/configuration.rb,
lib/healthcheck_endpoint/rack_middleware.rb,
lib/healthcheck_endpoint/error/configuration/argument_type.rb,
lib/healthcheck_endpoint/error/configuration/not_configured.rb,
lib/healthcheck_endpoint/error/configuration/enpoint_pattern.rb,
lib/healthcheck_endpoint/error/configuration/unknown_service.rb,
lib/healthcheck_endpoint/error/configuration/http_status_failure.rb,
lib/healthcheck_endpoint/error/configuration/http_status_success.rb,
lib/healthcheck_endpoint/error/configuration/not_callable_service.rb
Defined Under Namespace
Modules: Error
Classes: Configuration, RackMiddleware, Resolver
Constant Summary
collapse
- VERSION =
'1.0.0'
Class Method Summary
collapse
Class Method Details
.configuration(&block) ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/healthcheck_endpoint.rb', line 7
def configuration(&block)
@configuration ||= begin
return unless block
HealthcheckEndpoint::Configuration.new(&block)
end
end
|
15
16
17
18
19
|
# File 'lib/healthcheck_endpoint.rb', line 15
def configure(&block)
return configuration {} unless block
configuration(&block)
end
|
.reset_configuration! ⇒ Object
21
22
23
|
# File 'lib/healthcheck_endpoint.rb', line 21
def reset_configuration!
@configuration = nil
end
|