Sha256: 2ae63b7ab1fb873580449b30ecc5049c33834d2510c49bea0ccf5c9cf350d872
Contents?: true
Size: 780 Bytes
Versions: 4
Compression:
Stored size: 780 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', 'Listing for cloud name') { |c| optioner.cloudname c } end load_pool(o.spec || Binary.get_existing_spec_location) @testing = o.testing include Remote @clouds = extract_cloud_from_options o @clouds.each do |cloud| with_cloud(cloud, {:testing => @testing, :verbose => o.verbose}) 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-0.2.40 | bin/cloud-expand |
auser-poolparty-0.2.41 | bin/cloud-expand |
auser-poolparty-0.2.42 | bin/cloud-expand |
auser-poolparty-0.2.44 | bin/cloud-expand |