Sha256: a61581c99815505225b2ecb186de73ba405ec673fa01e00ba4eb6a78027544ad
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 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 #puts "rotating 'giftcards1' -> 'giftcards2'" #elb.rotate("giftcards1" => "giftcards2") #puts "done!"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rodeo_clown-0.0.1 | bin/elb_rotate.rb |