Skip to content

Instantly share code, notes, and snippets.

@queso
Created June 15, 2009 14:24
Show Gist options
  • Save queso/130135 to your computer and use it in GitHub Desktop.
Save queso/130135 to your computer and use it in GitHub Desktop.
#!/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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment