Class: ElbEnableZones
- Defined in:
- lib/maws/commands/elb-enable-zones.rb
Instance Method Summary collapse
Instance Method Details
#add_specific_options(parser) ⇒ Object
11 12 13 |
# File 'lib/maws/commands/elb-enable-zones.rb', line 11 def (parser) parser.opt :zones, "Zones to enable", :short => '-z', :type => :strings end |
#description ⇒ Object
6 7 8 |
# File 'lib/maws/commands/elb-enable-zones.rb', line 6 def description "elb-enable-zones - add entire zones to specified ELBs (zones must exist)" end |
#run! ⇒ Object
15 16 17 |
# File 'lib/maws/commands/elb-enable-zones.rb', line 15 def run! instances.specified.with_service(:elb).each {|elb| elb.enable_zones(.zones)} end |