Sha256: 7988594112dc7ce0a7208dd22a9fde64b554a154be1dae2c8621d55c0d01c19c

Contents?: true

Size: 806 Bytes

Versions: 18

Compression:

Stored size: 806 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

begin
  @cloud = cloud(o.cloudname.downcase.to_sym)
rescue
  puts "Cloud name required. Please specify it with -n name"
  exit(0)
end

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

18 entries across 18 versions & 2 rubygems

Version Path
auser-poolparty-0.2.15 bin/cloud-expand
auser-poolparty-0.2.16 bin/cloud-expand
auser-poolparty-0.2.2 bin/cloud-expand
auser-poolparty-0.2.20 bin/cloud-expand
auser-poolparty-0.2.21 bin/cloud-expand
auser-poolparty-0.2.22 bin/cloud-expand
auser-poolparty-0.2.23 bin/cloud-expand
auser-poolparty-0.2.24 bin/cloud-expand
auser-poolparty-0.2.25 bin/cloud-expand
auser-poolparty-0.2.26 bin/cloud-expand
auser-poolparty-0.2.3 bin/cloud-expand
auser-poolparty-0.2.4 bin/cloud-expand
auser-poolparty-0.2.5 bin/cloud-expand
auser-poolparty-0.2.6 bin/cloud-expand
auser-poolparty-0.2.8 bin/cloud-expand
auser-poolparty-0.2.9 bin/cloud-expand
poolparty-0.2.18 bin/cloud-expand
poolparty-0.2.6 bin/cloud-expand