Skip to content
/ hare Public

A command-line tool in Ruby to interact with message queues

License

Notifications You must be signed in to change notification settings

blt/hare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hare -- A command-line tool in Ruby to interact with message queues

Introduction

Life with an AMQP message bus is dandy. hare exists to augment that experience, allowing cron scripts and other system utilies to fire and forget messages over the message bus or to receive messages to stdout. hare is to RabbitMQ as mailx is to postfix.

Installation

Assuming you have a Ruby environment available, it's as simple as:

gem install hare

If not, consider the use of rbenv or rvm.

Example Usage

We'll send a message over the localhost message bus, exchange 'events', vhost '/' with route-key 'dev.event'. First, get a hare into listener mode:

$ hare --exchange_name events --exchange_type topic --route_key dev.event

and we'll send a message:

$ hare --exchange_name events --exchange_type topic --route_key dev.event --producer "that wasn't so bad"

Miscellania

hare has been developed as a part of my work with CarePilot and is released under the MIT license. hare uses semantic versioning.

About

A command-line tool in Ruby to interact with message queues

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages