Sha256: 16a2a173bcc72cf8004a129388e352b330e586686dad5a7fe1d42986a1dcd8f9

Contents?: true

Size: 310 Bytes

Versions: 27

Compression:

Stored size: 310 Bytes

Contents

module BridgeCache::Utils
  module WorkerHelper
    def self.invoke_next(job_chain, params = [])
      job_chain ||= []
      job = job_chain.shift
      if job
        job_class = Object.const_get(job[:job].classify)
        job_class.perform_later(*(job[:params].concat(params)))
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
bridge_cache-0.2.8 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.2.7 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.2.6 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.2.5 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.2.4 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.2.3 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.2.2 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.2.1 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.2.0 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.1.0 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.0.23 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.0.22 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.0.21 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.0.20 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.0.19 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.0.18 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.0.17 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.0.16 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.0.14 app/lib/bridge_cache/utils/worker_helper.rb
bridge_cache-0.0.13 app/lib/bridge_cache/utils/worker_helper.rb