Sha256: b5bce557a3d9afcdd7d9325a9e95e9d89dd3f6d37cfad3fa1741597d2322ce54

Contents?: true

Size: 781 Bytes

Versions: 26

Compression:

Stored size: 781 Bytes

Contents

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

require 'git-style-binary/command'

GitStyleBinary.command do
  @theme = :short
  
  version "PoolParty #{$0} command"  
  banner <<-EOS
Usage: #{$0} #{all_options_string}

shows output about the clouds.rb

EOS

  short_desc "shows output about the clouds.rb"

  run do |command|

    @loaded_clouds.each do |cld|
        
      msg = [
        "Cloud: #{cld.name}",
        "----------------------------",
        "Instances: #{cld.nodes(:status => "running").size}",
        "Minimum instances: #{cld.minimum_instances}",
        "Maximum instances: #{cld.maximum_instances}",
        "Running on: #{cld.cloud_provider_name}"
      ]
      
      print_msg(msg)
      
    end
    
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

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