Sha256: 75edcdb7490ffa9c12c8be95172b39de7185f4ee9f63249f7625d533cc17f376
Contents?: true
Size: 397 Bytes
Versions: 5
Compression:
Stored size: 397 Bytes
Contents
# frozen_string_literal: true module Jackhammer class TopicManager class << self def topics topics = {} Jackhammer.configuration.yaml.each do |topic, topic_config| queues = topic_config.delete 'queues' topics[topic.to_sym] = Topic.new(name: topic, options: topic_config, queue_config: queues) end topics end end end end
Version data entries
5 entries across 5 versions & 1 rubygems