Sha256: 98931951b46b10102aaaa382cc6eef872f9d9edb0f81921498909759db3b0675

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

# Small script to enqueue messages for example-3.rb

require 'bunny'

bunch_of_urls = [
  "http://www.webpop.com", "http://www.engineyard.com/", "http://www.jruby.org/", "http://akka.io/",
  "http://www.madinspain.com", "http://www.domestika.org", "http://www.google.com", "Bad Url"
]

bunny = Bunny.new
bunny.start
queue = bunny.queue('fetch.url')

50.times do
  queue.publish bunch_of_urls[rand(bunch_of_urls.length)]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
akka-0.0.3 examples/enqueue-urls.rb
akka-0.0.1 examples/enqueue-urls.rb