Sha256: 533758f3913f7d511823655bd7e1e977a6399b644d60e60f4c066a2e51691363
Contents?: true
Size: 788 Bytes
Versions: 27
Compression:
Stored size: 788 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 o.loaded_clouds.each do |cloud| with_cloud(cloud) do vputs header("Load handling cloud #{name}") vputs "should_expand_cloud: #{should_contract_cloud?}" 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
27 entries across 27 versions & 2 rubygems