This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

comments about the purpose of the util scripts

  • Loading branch information...
simulacre committed Mar 3, 2012
1 parent fb90581 commit 415c8232fced640dbcafc23a007d2c4debeac494
Showing with 14 additions and 2 deletions.
  1. +3 −0 listen.erl
  2. +7 −2 listen.rb
  3. +4 −0 send.rb
View
@@ -1,6 +1,9 @@
#!/usr/bin/env escript
%%! -pz ./amqp_client ./rabbit_common ./amqp_client/ebin ./rabbit_common/ebin
+%% listen.erl is simple script that receives rabbit events as JSON
+%% blobs, decodes and prints them.
+
-include_lib("amqp_client/include/amqp_client.hrl").
main(_) ->
View
@@ -1,4 +1,8 @@
#!/usr/bin/env ruby -wW1
+
+# listen.rb is a simple script that receives rabbit events as JSON
+# blobs, decodes and pretty prints them on teh console.
+
require 'amqp'
require 'json'
@@ -15,6 +19,7 @@
else
puts " headers: #{headers.attributes}"
puts " payload: #{payload.inspect}"
- end # headers[:contente_type]
- end # headers, payload
+ end
+ end
+
end
View
@@ -1,4 +1,8 @@
#!/usr/bin/env ruby -wW1
+
+# send.rb is a simple script to force rabbitmq to generate internal
+# events for testing.
+
require "amqp"
EventMachine.run do

0 comments on commit 415c823

Please sign in to comment.