Sha256: 0b6051e28c0b7a8209fbff309bf12a69fb8533460bcfb54b4d653dc30ed047d4
Contents?: true
Size: 818 Bytes
Versions: 7
Compression:
Stored size: 818 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require "poolparty" require "poolpartycl" o = PoolParty::Optioner.new(ARGV) do |opts, optioner| opts.on('-n name', '--name name', 'Expand the cloud on this name') { |c| optioner.cloudname c } end o.loaded_clouds.each do |cld| vputs header("Expanding cloud #{cld.name}") vputs "#{cld.nodes(:status => "running").size} running instances of #{cld.maximum_instances} possible instances" vputs testing ? "Not expanding (test mode)" : "Expanding the cloud" cld.launch_instance! do |node| ::PoolParty::Provision::BootStrapper.new(node.ip, :cloud => cld) ::PoolParty::Provision::DrConfigure.new(node.ip, :cloud => cld) puts <<-EOM Your cloud has expanded. The new ip is #{node.ip} EOM end end
Version data entries
7 entries across 7 versions & 3 rubygems