debian-mirror-gitlab/lib/gitlab/health_checks/redis.rb

17 lines
379 B
Ruby
Raw Normal View History

2022-10-11 01:57:18 +05:30
# frozen_string_literal: true
module Gitlab
module HealthChecks
module Redis
ALL_INSTANCE_CHECKS =
::Gitlab::Redis::ALL_CLASSES.map do |instance_class|
check_class = Class.new
check_class.extend(RedisAbstractCheck)
const_set("#{instance_class.store_name}Check", check_class)
check_class
end
end
end
end