famoseagle / carrot

A synchronous amqp client

This URL has Read+Write access

carrot /
name age message
file .gitignore Fri Mar 20 17:23:39 -0700 2009 Initial commit to carrot. [famoseagle]
file LICENSE Wed Apr 08 16:01:05 -0700 2009 adding examples and readme [famoseagle]
file README.markdown Fri Apr 10 12:18:32 -0700 2009 testing links... [famoseagle]
file Rakefile Wed Apr 08 16:01:05 -0700 2009 adding examples and readme [famoseagle]
file VERSION.yml Loading commit data...
file carrot.gemspec
directory lib/
directory protocol/ Fri Mar 20 17:25:14 -0700 2009 adding aman's amqp code [famoseagle]
directory test/ Sun Mar 29 09:21:42 -0700 2009 saving work [famoseagle]
README.markdown

Carrot

A synchronous amqp client. Based on Aman's amqp client:

http://github.com/tmm1/amqp/tree/master

Example

q = Carrot.queue('name', :durable => true, :host => 'q1.rabbitmq.com')
100.times do
  q.publish('foo')
end

pp :count, q.message_count

while msg = q.pop(:ack => true)
  puts msg
  q.ack
end
Carrot.stop

LICENSE

Copyright (c) 2009 Amos Elliston, Geni.com; Published under The MIT License, see License