Sha256: fdc182ba48fcf5222b7902d1cc9d2a2d81250f4c2437439cd7f9e2a5c4b95c76

Contents?: true

Size: 293 Bytes

Versions: 1

Compression:

Stored size: 293 Bytes

Contents

require 'bunny_carrot'
require 'logger'
require "stringio"

logger = Logger.new(StringIO.new)
BunnyCarrot.logger = logger

ENV["RABBITMQ_URL"] = "amqp://127.0.0.1:5672"

QUEUE_NAME, MESSAGE = *ARGV

BunnyCarrot::RabbitHole.publish queue_name: QUEUE_NAME, payload: { message: MESSAGE }
sleep 1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bunny_carrot-0.0.2 spec/fixtures/producer.rb