You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: gitaly_check.rb
    path of file: ./repos/gitlabhq/lib/system_check
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module SystemCheck
  class GitalyCheck < BaseCheck
    set_name 'Gitaly:'

    def multi_check
      Gitlab::HealthChecks::GitalyCheck.re
    
    def multi_check
      Gitlab::HealthChecks::GitalyCheck.readiness.each do |result|
        $stdout.print "#{result.labels[:shard]} ... "

        if result.success
          $stdout.puts 'OK'.color(:green)
        else
          $stdout.puts "FAIL: #{result.message}".color(:red)
        end
      end