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