Class: ElbAdd
Instance Method Summary collapse
Instance Method Details
#description ⇒ Object
6 7 8 |
# File 'lib/maws/commands/elb-add.rb', line 6 def description "elb-add - adds all specified EC2 instances to all specified ELBs" end |
#run! ⇒ Object
10 11 12 13 14 15 |
# File 'lib/maws/commands/elb-add.rb', line 10 def run! ec2s = instances.specified.with_service(:ec2) elbs = instances.specified.with_service(:elb) elbs.each {|elb| elb.add_instances(ec2s)} end |