Sha256: 0d66062564780d61983bda0567420fd26313d3122816aef8030a2454f08590fd

Contents?: true

Size: 536 Bytes

Versions: 2

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

require_relative 'healthcheck/core'

module OnStrum
  module Healthcheck
    class << self
      def configuration(&block)
        @configuration ||= begin
          return unless block

          OnStrum::Healthcheck::Configuration.new(&block)
        end
      end

      def configure(&block)
        return configuration {} unless block # rubocop:disable Lint/EmptyBlock

        configuration(&block)
      end

      def reset_configuration!
        @configuration = nil
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
on_strum-healthcheck-0.3.0 lib/on_strum/healthcheck.rb
on_strum-healthcheck-0.2.0 lib/on_strum/healthcheck.rb