File: availability_zones.rb

package info (click to toggle)
ruby-amazon-ec2 0.9.17-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,232 kB
  • sloc: ruby: 4,659; makefile: 5
file content (29 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module AWS
  module EC2
    class Base < AWS::Base

      # The DescribeAvailabilityZones operation describes availability zones that are currently
      # available to the account and their states.
      #
      # An optional list of zone names can be passed.
      #
      # @option options [optional, String] :zone_name ([]) an Array of zone names
      #
      def describe_availability_zones( options = {} )
        options = { :zone_name => [] }.merge(options)
        params = pathlist("ZoneName", options[:zone_name] )
        return response_generator(:action => "DescribeAvailabilityZones", :params => params)
      end

      # Not yet implemented
      #
      # @todo Implement this method
      #
      def describe_regions( options = {} )
        raise "Not yet implemented"
      end

    end
  end
end