Sha256: 09eada335095938dea291f7e1941fbe1e0b86c3a5d5647954a0f910f908f6a6b
Contents?: true
Size: 426 Bytes
Versions: 4
Compression:
Stored size: 426 Bytes
Contents
module Cloudist class Publisher class << self def enqueue(queue_name, data) payload = Cloudist::Payload.new(data) queue = Cloudist::JobQueue.new(queue_name) queue.setup # send_message = proc { queue.publish(payload) # } # EM.next_tick(&send_message) return Job.new(payload) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cloudist-0.4.4 | lib/cloudist/publisher.rb |
cloudist-0.4.3 | lib/cloudist/publisher.rb |
cloudist-0.4.2 | lib/cloudist/publisher.rb |
cloudist-0.4.1 | lib/cloudist/publisher.rb |