Sha256: e3e182588cf0eed0399aaeb2abaf99419b07d5413a47be029dca4863f41fc31a

Contents?: true

Size: 768 Bytes

Versions: 29

Compression:

Stored size: 768 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.dirname(__FILE__) + "/../lib")
require "poolparty"

require 'git-style-binary/command'

GitStyleBinary.command do  
  banner <<-EOS
Usage: #{$0} #{all_options_string}

  expands the cloud by a single instance
EOS

  short_desc "expands the cloud by a single instance"

  run do |command|    
    @loaded_clouds.each do |cld|
      
      msg = [
        "Expanding cloud #{cld.name} (#{cld.keypair})",
        "#{cld.nodes.size} running instances (#{cld.minimum_instances} - #{cld.maximum_instances})"
      ]
      
      print_msg(msg)
      
      inst = cld.expand
      inst.bootstrap!
      
      msg = [
        "Your cloud has expanded by node: #{inst.public_ip}"
      ]
      
      print_msg(msg)

    end
    
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
auser-poolparty-1.3.0 bin/cloud-expand
auser-poolparty-1.3.1 bin/cloud-expand
auser-poolparty-1.3.10 bin/cloud-expand
auser-poolparty-1.3.11 bin/cloud-expand
auser-poolparty-1.3.12 bin/cloud-expand
auser-poolparty-1.3.13 bin/cloud-expand
auser-poolparty-1.3.14 bin/cloud-expand
auser-poolparty-1.3.15 bin/cloud-expand
auser-poolparty-1.3.16 bin/cloud-expand
auser-poolparty-1.3.17 bin/cloud-expand
auser-poolparty-1.3.2 bin/cloud-expand
auser-poolparty-1.3.3 bin/cloud-expand
auser-poolparty-1.3.4 bin/cloud-expand
auser-poolparty-1.3.5 bin/cloud-expand
auser-poolparty-1.3.6 bin/cloud-expand
auser-poolparty-1.3.7 bin/cloud-expand
auser-poolparty-1.3.8 bin/cloud-expand
fairchild-poolparty-1.3.17 bin/cloud-expand
fairchild-poolparty-1.3.5 bin/cloud-expand
poolparty-1.4.0 bin/cloud-expand