#!/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`