Sha256: c4ed4572ed1beeea3d9cbf855cd414df8576fc64c8cefd683beb23f34b33dc6c
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
#!/usr/bin/env ruby require "./lib/rodeo_clown" def get_elb puts "============\nRotate ELB\n=============\nChoose ELB:" elbs = RodeoClown::ELB.load_balancers n = 0 elbs.each do |elb| n += 1 puts "#{n}> #{elb.name}" end puts "Other> Exit!" num = gets.chomp.to_i cnt = 1 elb = nil elbs.each do |e| if cnt == num elb = e break end cnt += 1 end if elb.nil? puts "Leaving so soon?" exit end RodeoClown::ELB.new elb end rc_elb = get_elb puts rc_elb.instances.map &:id
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rodeo_clown-0.1.0 | bin/elb_rotate.rb |