Sha256: 07eb261d38b31ece42465b27a7b032d493a74cb22af520a05d73f629cdd93942
Contents?: true
Size: 809 Bytes
Versions: 8
Compression:
Stored size: 809 Bytes
Contents
require_relative 'table_queue' require_relative 'simple_logging' using AcpcTableManager::SimpleLogging::MessageFormatting module AcpcTableManager class Maintainer include SimpleLogging def initialize(logger_ = AcpcTableManager.new_log('table_manager.log')) @logger = logger_ log(__method__) @table_queues = {} ::AcpcTableManager.exhibition_config.games.keys.each do |game_definition_key| @table_queues[game_definition_key] = ::AcpcTableManager::TableQueue.new(game_definition_key) end maintain! end def maintain! log __method__, msg: "Starting maintenance" @table_queues.each do |key, queue| log(__method__, {queue: key}) queue.check! end log __method__, msg: "Finished maintenance" end end end
Version data entries
8 entries across 8 versions & 1 rubygems