Sha256: dcf3090eeb60b0eaa59b7a07a642d56fcde2c8249a0c70b25dde5b1b4d44ccec

Contents?: true

Size: 649 Bytes

Versions: 64

Compression:

Stored size: 649 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', '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 = o.cloudname ? [cloud(o.cloudname.downcase.to_sym)] : clouds

@clouds.each do |name, 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

64 entries across 64 versions & 2 rubygems

Version Path
auser-poolparty-0.2.20 bin/server-list-responding
auser-poolparty-0.2.21 bin/server-list-responding
auser-poolparty-0.2.22 bin/server-list-responding
auser-poolparty-0.2.23 bin/server-list-responding
auser-poolparty-0.2.24 bin/server-list-responding
auser-poolparty-0.2.25 bin/server-list-responding
auser-poolparty-0.2.26 bin/server-list-responding
auser-poolparty-0.2.35 bin/server-list-responding
auser-poolparty-0.2.36 bin/server-list-responding
auser-poolparty-0.2.37 bin/server-list-responding
auser-poolparty-0.2.38 bin/server-list-responding
auser-poolparty-0.2.39 bin/server-list-responding
auser-poolparty-0.2.40 bin/server-list-responding
auser-poolparty-0.2.41 bin/server-list-responding
auser-poolparty-0.2.42 bin/server-list-responding
auser-poolparty-0.2.44 bin/server-list-responding
auser-poolparty-0.2.45 bin/server-list-responding
auser-poolparty-0.2.46 bin/server-list-responding
auser-poolparty-0.2.47 bin/server-list-responding
auser-poolparty-0.2.48 bin/server-list-responding