Permalink
Browse files

starting on README

  • Loading branch information...
1 parent c92c025 commit c031b5be59c46a1e6ee1d604e3cbce222a929ec8 @bmizerany committed Nov 21, 2008
Showing with 17 additions and 0 deletions.
  1. +17 −0 README.textile
View
@@ -0,0 +1,17 @@
+h1. Lizzy - The lightweight agent system for AMQP
+
+<pre><code># agent.rb
+require 'rubygems'
+require 'lizzy'
+
+Lizzy.listen4("mail.sent") do |o, info, req|
+ p [Time.now, :request, req]
+
+ # We need to save an attcahment. This may take awhile; defer from here
+ o.defer do
+ save_attachment(req[:attachment], "baxter.jpg")
+ o.publish("attachment.saved", { :filename => "baxter.jpg" })
+ end
+
+end
+</code></pre>

0 comments on commit c031b5b

Please sign in to comment.