Sha256: b00a8fca4bf48ce9f6bc5520de9b49288721e0800dea22bed9288d6033e20b5c

Contents?: true

Size: 540 Bytes

Versions: 9

Compression:

Stored size: 540 Bytes

Contents

module Fog
  module Zerigo
    class DNS
      class Real

        # Delete a zone from Zerigo
        #
        # ==== Parameters
        # * zone_id<~Integer> - Id of zone to delete
        # ==== Returns
        # * response<~Excon::Response>:
        #   * 'status'<~Integer> - 200 indicates success
        
        def delete_zone(zone_id)
          request(
            :expects  => 200,
            :method   => 'DELETE',
            :path     => "/api/1.1/zones/#{zone_id}.xml"
          )
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/dns/requests/zerigo/delete_zone.rb
fog-0.8.1 lib/fog/dns/requests/zerigo/delete_zone.rb
fog-0.8.0 lib/fog/dns/requests/zerigo/delete_zone.rb
fog-0.7.2 lib/fog/dns/requests/zerigo/delete_zone.rb
fog-0.7.1 lib/fog/dns/requests/zerigo/delete_zone.rb
fog-0.7.0 lib/fog/dns/requests/zerigo/delete_zone.rb
fog-0.6.0 lib/fog/dns/requests/zerigo/delete_zone.rb
fog-0.5.3 lib/fog/dns/requests/zerigo/delete_zone.rb
fog-0.5.2 lib/fog/dns/requests/zerigo/delete_zone.rb