Project

hare

0.0
No commit activity in last 3 years
No release in over 3 years
The one pain-point I have had with AMQP is the lack of a series of command line tools for smoke-testing components or sending my own messages through a queue. Hare can be toggled either to produce messages, or to sit and listen/report for them.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.9.2
 Project Readme

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.