Commit 1842d6d
Changed files (1)
send.rb
@@ -0,0 +1,14 @@
+#!/env ruby
+# encoding: utf-8
+
+require "bunny"
+
+connection = Bunny.new
+connection.start
+
+channel = connection.create_channel
+queue = channel.queue("hello")
+
+channel.default_exchange.publish("hi", routing_key: queue.name)
+puts " [x] Send 'hi'"
+connection.close