queso (owner)

Revisions

gist: 130135 Download_button fork
public
Public Clone URL: git://gist.github.com/130135.git
Ruby
1
2
3
4
5
6
7
8
#!/usr/bin/env ruby
require 'yaml'
cluster = YAML::load(File.open(File.dirname(__FILE__) + '/../config/cluster.yml'))
 
command = ARGV.shift.to_s.to_sym
0.upto(cluster["cluster_size"].to_i - 1) do |server|
  `./bin/tweetbots #{command} --config daemon_name="tweetbots #{server}" --pid /tmp/tweetbots.#{server}.pid`
end`