Sha256: 2d5907217a321ae039971ec14748376499619fb892b6b9315a0a14cc3b71868d

Contents?: true

Size: 752 Bytes

Versions: 19

Compression:

Stored size: 752 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_by(1)
      
      msg = [
        "Your cloud has expanded by node: #{inst.public_ip}"
      ]
      
      print_msg(msg)

    end
    
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
poolparty-1.6.9 bin/cloud-expand
poolparty-1.6.8 bin/cloud-expand
poolparty-1.6.7 bin/cloud-expand
poolparty-1.6.6 bin/cloud-expand
poolparty-1.6.5 bin/cloud-expand
poolparty-1.6.4 bin/cloud-expand
poolparty-1.6.3 bin/cloud-expand
poolparty-1.6.2 bin/cloud-expand
poolparty-1.6.1 bin/cloud-expand
poolparty-1.6.0 bin/cloud-expand
poolparty-1.5.0 bin/cloud-expand
poolparty-1.4.8 bin/cloud-expand
poolparty-1.4.7 bin/cloud-expand
poolparty-1.4.6 bin/cloud-expand
poolparty-1.4.5 bin/cloud-expand
poolparty-1.4.4 bin/cloud-expand
poolparty-1.4.3 bin/cloud-expand
poolparty-1.4.2 bin/cloud-expand
poolparty-1.4.1 bin/cloud-expand