Sha256: f0658e52f5d9d23065cf1808f34865c415cb29ee4ee9c168a2d21f8b2debca05
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true require "sidekiq" require_relative "run_job" require_relative "top_label" module Sidekiq module Belt module Community module Files def self.use!(options = [:all]) Sidekiq::Belt::Community::RunJob.use! if should_use?(:run_job, options) Sidekiq::Belt::Community::TopLabel.use! if should_use?(:top_label, options) true end def self.should_use?(key, options) options.include?(:all) || options.include?(key) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-belt-0.3.5 | lib/sidekiq/belt/community/files.rb |
sidekiq-belt-0.3.4 | lib/sidekiq/belt/community/files.rb |