Sha256: b423a5387360261cacd32501bfee47fb33f337ea574c9d9b5f24976741c14ee6
Contents?: true
Size: 1.26 KB
Versions: 6
Compression:
Stored size: 1.26 KB
Contents
#!/usr/bin/env ruby $:.unshift(File.dirname(__FILE__) + "/../lib") require "poolparty" # require "poolpartycl" require 'git-style-binary/command' GitStyleBinary.command do version "PoolParty #{$0} command" 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 run do |command| @loaded_clouds.each do |cld| # If an IP or DNS name is given, bootstrap that node, otherwise, bootstrap all running nodes. if cld.nodes(:status => "running").empty? puts "No nodes to bootstrap" else if command[:inst_num] vputs "\nConfiguring: #{cld.nodes[o.inst_num]}\n--------------------" address = cld.nodes(:status => "running")[ command[:inst_num] ] ::PoolParty::Provision::DrConfigure.new( address[:ip], :cloud => cld ) else cld.nodes(:status => "running").each do |address| cld.vputs "\nConfiguring: #{address[:ip]}\n--------------------" ::PoolParty::Provision::DrConfigure.new address[:ip], :cloud => cld end end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems