Sha256: 345122b331f8ab086f1a25eb25938be25fe5455a821cc9141e37b4e3e26349eb
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
#!/usr/bin/env ruby $:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require "poolparty" o = PoolParty::Optioner.new(ARGV) do |opts, optioner| opts.on('-n cloudname', '--name name', 'Start cloud by this name') { |c| optioner.cloudname c } opts.on('-i num', '--num i', 'Instance number') { |i| optioner.inst_num i.to_i } end o.loaded_clouds.each do |cld| # If an IP or DNS name is given, bootstrap that node, otherwise, bootstrap all running nodes. # ::FileUtils.rm_rf "#{Default.tmp_path}/" unless o.testing? nodes = !o.unflagged_args.empty? ? o.unflagged_args : cld.remote_instances_list.collect {|inst| inst.ip if inst.running? }.compact if nodes.empty? puts "No nodes to configure" else if o.inst_num? ::PoolParty::Provision::DrConfigure.new( nodes[o.inst_num], :full_keypair_path => cld.keypair.full_filepath, :cloud => cld ) else nodes.each do |address| puts "Configuring: #{address}" ::PoolParty::Provision::DrConfigure.new( address, :full_keypair_path => cld.keypair.full_filepath, :cloud => cld ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-1.1.5 | bin/cloud-configure |