Sha256: c74c935bd8b6a8f7062889c921d43cb72d8735b3db8f775bf9595c09775c97a6

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

# Example producer
# Run this file like so:
#
#   $ bundle exec ruby examples/producer.rb
#
require_relative '../lib/songkick_queue'

SongkickQueue.configure do |config|
  config.host = 'localhost'
  config.logger = Logger.new(STDOUT)
end

3.times do
  SongkickQueue.publish('notifications-service.tweets', { text: 'Hello world', user_id: 57237722 })
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
songkick_queue-0.5.0 examples/producer.rb