Sha256: aff0d7cd347940267b85242597f7b7b75de64a294fc432c49828beb6aade8bae

Contents?: true

Size: 744 Bytes

Versions: 30

Compression:

Stored size: 744 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('-c name', '--class name', 'Listing for cloud class (valid args: [name|ip])')    { |t| optioner.classname t }
  opts.on('-n name', '--name name', 'Listing for cloud name')    { |c| optioner.cloudname c }
end

load_pool(o.spec || Binary.get_existing_spec_location)

@ctype = (o.classname || "name").downcase.to_sym

include Remote

@clouds = extract_cloud_from_options o

@clouds.each do |cloud|
  
  with_cloud(cloud, {:location => @location, :ctype => @ctype}) do
    puts "#{list_of_running_instances.map{|a| "#{a.send ctype}" }.join("\t")}"
  end  
  
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
auser-poolparty-0.2.35 bin/server-list-active
auser-poolparty-0.2.36 bin/server-list-active
auser-poolparty-0.2.37 bin/server-list-active
auser-poolparty-0.2.38 bin/server-list-active
auser-poolparty-0.2.39 bin/server-list-active
auser-poolparty-0.2.40 bin/server-list-active
auser-poolparty-0.2.41 bin/server-list-active
auser-poolparty-0.2.42 bin/server-list-active
auser-poolparty-0.2.44 bin/server-list-active
auser-poolparty-0.2.45 bin/server-list-active
auser-poolparty-0.2.46 bin/server-list-active
auser-poolparty-0.2.47 bin/server-list-active
auser-poolparty-0.2.48 bin/server-list-active
auser-poolparty-0.2.49 bin/server-list-active
auser-poolparty-0.2.50 bin/server-list-active
auser-poolparty-0.2.51 bin/server-list-active
auser-poolparty-0.2.52 bin/server-list-active
auser-poolparty-0.2.53 bin/server-list-active
auser-poolparty-0.2.54 bin/server-list-active
auser-poolparty-0.2.55 bin/server-list-active