Sha256: 88d7f738319fee1d739a6cd21257aac84c729513f1e3e9eef14c84be42d9c8f7
Contents?: true
Size: 832 Bytes
Versions: 2
Compression:
Stored size: 832 Bytes
Contents
# frozen_string_literal: true # @note Active Support is already included since Karafka is using it directly so no need # to require it again in the gemspec, etc %w[ karafka sidekiq active_support/core_ext/class/subclasses ].each(&method(:require)) # Karafka framework namespace module Karafka # Namespace for all the backends that process data module Backends # Sidekiq Karafka backend module Sidekiq class << self # @return [String] path to Karafka gem root core def core_root Pathname.new(File.expand_path('../karafka', __FILE__)) end end end end end # Uses Karafka loader to load all the sources that this backend needs Karafka::Loader.load!(Karafka::Backends::Sidekiq.core_root) Karafka::AttributesMap.prepend(Karafka::Extensions::SidekiqAttributesMap)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
karafka-sidekiq-backend-1.1.0 | lib/karafka-sidekiq-backend.rb |
karafka-sidekiq-backend-1.1.0.alpha1 | lib/karafka-sidekiq-backend.rb |