public
Fork of benburkert/cruisecontrolrb
Description: CruiseControl.rb is a continuous integration tool, written in Ruby. It is quick to install, simple to use and easy to hack.
Homepage: http://cruisecontrolrb.thoughtworks.com/
Clone URL: git://github.com/dustin/cruisecontrolrb.git
cruisecontrolrb / trigger-build.rb
100755 12 lines (8 sloc) 0.191 kb
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby -w
 
require 'rubygems'
require 'beanstalk-client'
 
server, queue = $*
 
puts "Server: #{server}, queue: #{queue}"
 
q=Beanstalk::Pool.new([server], queue)
q.put('')
q.close