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