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