Class: ElbEnableZones

Inherits:
ElbCommand
  • Object
show all
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 add_specific_options(parser)
  parser.opt :zones, "Zones to enable", :short => '-z', :type => :strings
end

#descriptionObject



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(options.zones)}
end