Sha256: 9a3ecd9d54490084959088b43ceae3cb3c7c4d9ae7fb7b96f69f646519c18714
Contents?: true
Size: 497 Bytes
Versions: 4
Compression:
Stored size: 497 Bytes
Contents
module Heartcheck module Controllers class Inspect < Base def index results = { application_name: application_name, dependencies: [] } checks = Heartcheck.checks results[:dependencies] += checks.reduce([]) do |acc, elem| acc << elem.uri_info end.flatten.uniq MultiJson.dump(results) end private def application_name ENV.fetch('HEARTCHECK_APP_NAME') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems