Skip to content

Instantly share code, notes, and snippets.

@hiyosi
Created March 20, 2012 12:57
Show Gist options
  • Save hiyosi/2135094 to your computer and use it in GitHub Desktop.
Save hiyosi/2135094 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'bunny'
b = Bunny.new(:host => '192.168.0.1')
b.start
e = b.exchange("", :auto_delete => true)
e.publish("hello, everybody!", :key => 'test1')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment