Sha256: b8d7d16aaa02e356123523a4185ee0a3718c345ba803e62641c8f0453590c6ef
Contents?: true
Size: 299 Bytes
Versions: 3
Compression:
Stored size: 299 Bytes
Contents
#!/usr/bin/env ruby require_relative "../config/environment" Outboxer::Publisher.publish do |args| logger = args.logger message = args.message logger.info("[#{message.id}] publishing") HardJob.perform_async({ "message_id" => message.id }) logger.info("[#{message.id}] published") end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
outboxer-0.1.3 | generators/outboxer/templates/bin/publisher.rb |
outboxer-0.1.2 | generators/outboxer/templates/bin/publisher.rb |
outboxer-0.1.1 | generators/outboxer/templates/bin/publisher.rb |