#!/usr/bin/env ruby $:.unshift(File.dirname(__FILE__) + "/../lib") require "poolparty" require 'git-style-binary/command' GitStyleBinary.command do banner <<-EOS Usage: #{$0} #{all_options_string} Bootstrap a cloud instance EOS short_desc "Bootstrap a cloud instance" opt :inst_num, "The number of the instance to run bootstrap on", :type => :int opt :force, "Force rebootstrapping (useful for upgrading)", :default => false run do |command| @loaded_clouds.each do |cld| cld.nodes.each do |node| node.bootstrap!(:force=>command[:force]) end end end end