Skip to content

GaetanJuvin/rabbitmq-ruby-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rabbitmq::Sender

Easy ruby rabbitmq sender.

Usage

require 'rabbitmq/sender'

Rabbitmq::Sender.config do |config|
      config.host 	  = '8.8.8.8'
      config.user 	  = 'superuser'
      config.password = 'superpassword'
      config.vhost    = 'supervhost'
      config.verbose  = true
end

Rabbitmq::Sender.send_to('send_queue', 'supermessage')

Configuration - defaults

logger:     Logger.new(STDOUT)
host:       '8.8.8.8'
port:       5672
pool:       20
timeout:    5
user:       nil
password:   nil
vhost:      '/'
prefetch:   10
verbose:    false
retry_time: 5

Installation

Add this line to your application's Gemfile:

gem 'rabbitmq-sender'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rabbitmq-sender

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rabbitmq-sender. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

About

Easy ruby rabbitmq sender | and the receiver ->

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published