#!/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} Configure a cloud instance EOS short_desc "Configure a cloud instance" opt :inst_num, "The number of the instance to run bootstrap on", :type => :int opt :generate_graph, "Generate the dependency tree graph", :type => :string, :default => nil run do |command| @loaded_clouds.each do |cld| if command[:generate_graph] vputs "Generating dependency graph at: #{command[:generate_graph]}" cld.output_resources_graph('png', command[:generate_graph], {"fontsize" => 30}) end cld.nodes.each do |node| node.configure!(:cloud => cld) end end end end