Sha256: f367cd4409d64804375ec5d87de37b79a0197b13d7e94d6c4c30283e65c38509

Contents?: true

Size: 613 Bytes

Versions: 53

Compression:

Stored size: 613 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 |cl|
  with_cloud(cl) do
    puts header("Contracting cloud #{name}")
    puts "#{list_of_running_instances.size} running instances (#{minimum_instances} minimum instances)"
    puts testing ? "Not contracting (test mode)" : "Contracting the cloud if possible"
    contract_cloud_if_necessary( !testing )
  end
end

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
auser-poolparty-0.2.45 bin/cloud-contract
auser-poolparty-0.2.46 bin/cloud-contract
auser-poolparty-0.2.47 bin/cloud-contract
auser-poolparty-0.2.48 bin/cloud-contract
auser-poolparty-0.2.49 bin/cloud-contract
auser-poolparty-0.2.50 bin/cloud-contract
auser-poolparty-0.2.51 bin/cloud-contract
auser-poolparty-0.2.52 bin/cloud-contract
auser-poolparty-0.2.53 bin/cloud-contract
auser-poolparty-0.2.54 bin/cloud-contract
auser-poolparty-0.2.55 bin/cloud-contract
auser-poolparty-0.2.56 bin/cloud-contract
auser-poolparty-0.2.57 bin/cloud-contract
auser-poolparty-0.2.58 bin/cloud-contract
auser-poolparty-0.2.59 bin/cloud-contract
auser-poolparty-0.2.60 bin/cloud-contract
auser-poolparty-0.2.61 bin/cloud-contract
auser-poolparty-0.2.62 bin/cloud-contract
auser-poolparty-0.2.63 bin/cloud-contract
auser-poolparty-0.2.64 bin/cloud-contract