Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

starting on README

  • Loading branch information...
commit c031b5be59c46a1e6ee1d604e3cbce222a929ec8 1 parent c92c025
@bmizerany authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 README.textile
View
17 README.textile
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.