Sha256: bcea863c07adee21318b3b781ff4571688423a16a3de89850dbff1e3a6c4f3c8
Contents?: true
Size: 611 Bytes
Versions: 26
Compression:
Stored size: 611 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', 'Listing for cloud name') { |c| optioner.cloudname c } end load_pool(o.spec || Binary.get_existing_spec_location) @location = o.location ? o.location : "remote" include Remote @clouds = o.cloudname ? [cloud(o.cloudname.downcase.to_sym)] : clouds @clouds.each do |name, cloud| with_cloud(cloud, {:location => @location}) do Kernel.system "echo #{master.ip.chomp} | pbcopy" end end
Version data entries
26 entries across 26 versions & 2 rubygems