Sha256: 181a8e3b5bb25caecba4dd16b50cb3fbaea081b6796b326291475150dbd799ab
Contents?: true
Size: 615 Bytes
Versions: 53
Compression:
Stored size: 615 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 |cloud| with_cloud(cloud) do vputs header("Expanding cloud #{name}") vputs "#{list_of_running_instances.size} running instances of #{maximum_instances} possible instances" vputs testing ? "Not expanding (test mode)" : "Expanding the cloud" expand_cloud_if_necessary( !testing ) end end
Version data entries
53 entries across 53 versions & 3 rubygems