Sha256: 7f1e165f528a3d31a639b69387bcf50926b1eebd65a884a3f6da30cba9093734
Contents?: true
Size: 401 Bytes
Versions: 2
Compression:
Stored size: 401 Bytes
Contents
require 'rack' require 'oj' Oj.default_options = { mode: :compat } module Heartcheck module Controllers class Base def index fail NotImplementError end protected def check(who) Oj.dump(executor.dispatch(Heartcheck.send("#{who}_checks"))) end private def executor Heartcheck::Executors::Base.new end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
heartcheck-1.0.7 | lib/heartcheck/controllers/base.rb |
heartcheck-1.0.6 | lib/heartcheck/controllers/base.rb |