Sha256: b1e331c4a28fe12e26f88cfea36375e71b6fbfd1bee4a06e6fa280b259000cf7
Contents?: true
Size: 988 Bytes
Versions: 4
Compression:
Stored size: 988 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) @location = o.location ? o.location : "remote" include Remote @clouds = o.cloudname ? [cloud(o.cloudname.downcase.to_sym)] : clouds @clouds.each do |name, cloud| with_cloud(cloud, {:location => @location, :testing => o.testing, :verbose => o.verbose}) do vputs header("Load handling cloud #{name}") if should_expand_cloud? vputs "Expanding cloud based on load" logger.debug "Expanding cloud based on load" logger.debug rules_values expand_cloud_if_necessary elsif should_contract_cloud? vputs "Contracting cloud based on load" logger.debug rules_values contract_cloud_if_necessary end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-0.2.40 | bin/cloud-handle-load |
auser-poolparty-0.2.41 | bin/cloud-handle-load |
auser-poolparty-0.2.42 | bin/cloud-handle-load |
auser-poolparty-0.2.44 | bin/cloud-handle-load |