Skip to content

Instantly share code, notes, and snippets.

@joewilliams
Created June 6, 2009 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joewilliams/124716 to your computer and use it in GitHub Desktop.
Save joewilliams/124716 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'rubygems'
require 'carrot'
def main
queue = "couchdb"
run = true
couchq = Carrot.queue(:queue => queue)
while run do
notifications = gets
if notifications == nil
run = false
else
couchq.publish(notifications)
end
end
end
main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment