mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
44b2ee3485
* Add customizable user roles * Various fixes and improvements * Add migration for old settings and fix tootctl role management
23 lines
501 B
Ruby
23 lines
501 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::SystemCheck
|
|
ACTIVE_CHECKS = [
|
|
Admin::SystemCheck::DatabaseSchemaCheck,
|
|
Admin::SystemCheck::SidekiqProcessCheck,
|
|
Admin::SystemCheck::RulesCheck,
|
|
Admin::SystemCheck::ElasticsearchCheck,
|
|
].freeze
|
|
|
|
def self.perform(current_user)
|
|
ACTIVE_CHECKS.each_with_object([]) do |klass, arr|
|
|
check = klass.new(current_user)
|
|
|
|
if check.skip? || check.pass?
|
|
arr
|
|
else
|
|
arr << check.message
|
|
end
|
|
end
|
|
end
|
|
end
|