Sha256: d0593234d63fac66e97d0b8ed2c0a2b20b5f27855d472a45bd5c78e074d7c7be

Contents?: true

Size: 996 Bytes

Versions: 7

Compression:

Stored size: 996 Bytes

Contents

module Fog
  module Slicehost
    class DNS
      class Real

        require 'fog/dns/parsers/slicehost/get_zones'

        # Get list of all DNS zones hosted on Slicehost (for this account)
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'zones'<~Array>
        #       * 'origin'<~String> - domain name to host (ie example.com)
        #       * 'id'<~Integer> - Id of the zone
        #       * 'ttl'<~Integer> - TimeToLive (ttl) for the domain, in seconds (> 60)
        #       * 'active'<~String> - whether zone is active in Slicehost DNS server - 'Y' or 'N'
        def get_zones
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Slicehost::DNS::GetZones.new,
            :path     => 'zones.xml'
          )
        end

      end

      class Mock

        def get_zones
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
fog-0.5.1 lib/fog/dns/requests/slicehost/get_zones.rb
fog-0.5.0 lib/fog/dns/requests/slicehost/get_zones.rb
phpfog-fog-0.4.1.3 lib/fog/dns/requests/slicehost/get_zones.rb
phpfog-fog-0.4.1.2 lib/fog/dns/requests/slicehost/get_zones.rb
phpfog-fog-0.4.1.1 lib/fog/dns/requests/slicehost/get_zones.rb
phpfog-fog-0.4.1 lib/fog/dns/requests/slicehost/get_zones.rb
fog-0.4.1 lib/fog/dns/requests/slicehost/get_zones.rb