File: push

package info (click to toggle)
ruby-raemon 0.3.0%2Bgit.2012.05.18.b78eaae57c-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 220 kB
  • ctags: 104
  • sloc: ruby: 901; makefile: 4
file content (16 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env ruby
######################################################
# A small script to push some messages to the channel
# when testing the redis-q daemon
######################################################

require 'bundler'
Bundler.setup

require 'beanstalk-client'

queue = Beanstalk::Pool.new(['localhost:11300'])

2000.times do |x|
  queue.put(:event => 'hello', :data => x)
end