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

Version Path
auser-poolparty-0.2.54 bin/cloud-handle-load
auser-poolparty-0.2.55 bin/cloud-handle-load
auser-poolparty-0.2.56 bin/cloud-handle-load
auser-poolparty-0.2.57 bin/cloud-handle-load
auser-poolparty-0.2.58 bin/cloud-handle-load
auser-poolparty-0.2.59 bin/cloud-handle-load
auser-poolparty-0.2.60 bin/cloud-handle-load
auser-poolparty-0.2.61 bin/cloud-handle-load
auser-poolparty-0.2.62 bin/cloud-handle-load
auser-poolparty-0.2.63 bin/cloud-handle-load
auser-poolparty-0.2.64 bin/cloud-handle-load
auser-poolparty-0.2.65 bin/cloud-handle-load
auser-poolparty-0.2.66 bin/cloud-handle-load
auser-poolparty-0.2.67 bin/cloud-handle-load
auser-poolparty-0.2.68 bin/cloud-handle-load
auser-poolparty-0.2.69 bin/cloud-handle-load
auser-poolparty-0.2.70 bin/cloud-handle-load
auser-poolparty-0.2.71 bin/cloud-handle-load
auser-poolparty-0.2.72 bin/cloud-handle-load
auser-poolparty-0.2.74 bin/cloud-handle-load