Sha256: 31b4b2b289718d9f930389a3117f9c0a951de0a27e56f8216099d4da7b4befd3

Contents?: true

Size: 717 Bytes

Versions: 5

Compression:

Stored size: 717 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)

@testing = o.testing

include Remote

@cloud = extract_cloud_from_options(o).first

with_cloud(@cloud, {:testing => @testing}) do
  puts header("Expanding cloud #{name}")
  puts "#{list_of_running_instances.size} running instances of #{maximum_instances} possible instances"
  puts testing ? "Not expanding (test mode)" : "Expanding the cloud"
  expand_cloud_if_necessary( !testing )
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
auser-poolparty-0.2.35 bin/cloud-expand
auser-poolparty-0.2.36 bin/cloud-expand
auser-poolparty-0.2.37 bin/cloud-expand
auser-poolparty-0.2.38 bin/cloud-expand
auser-poolparty-0.2.39 bin/cloud-expand