Skip to content

Instantly share code, notes, and snippets.

@bhauman
Created February 27, 2010 20:24
Show Gist options
  • Select an option

  • Save bhauman/316931 to your computer and use it in GitHub Desktop.

Select an option

Save bhauman/316931 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'amqp'
require 'mq'
AMQP.start(:host => 'localhost' ) do
q = MQ.new.queue('tasks')
q.subscribe do |msg|
puts msg
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment