Sha256: a979978b7f9c801eaaa0fae558374daef16a75cec3b49ee3cc20dbf3e0172de7
Contents?: true
Size: 532 Bytes
Versions: 7
Compression:
Stored size: 532 Bytes
Contents
# frozen_string_literal: true module HttpHealthCheck module Config class Dsl def initialize @routes = {} end attr_reader :routes, :configured_fallback_app, :configured_logger def probe(path, handler = nil, &block) @routes[path] = block_given? ? block : handler end def fallback_app(handler = nil, &block) @configured_fallback_app = block_given? ? block : handler end def logger(logger) @configured_logger = logger end end end end
Version data entries
7 entries across 7 versions & 1 rubygems