2010-12-12 09:51:52 -05:00
|
|
|
module Fog
|
2010-12-12 18:02:02 -05:00
|
|
|
module Zerigo
|
2010-12-21 16:45:53 -05:00
|
|
|
class DNS
|
2010-12-12 09:51:52 -05:00
|
|
|
class Real
|
|
|
|
|
2010-12-12 18:02:02 -05:00
|
|
|
# Delete a zone from Zerigo
|
2010-12-12 21:18:21 -05:00
|
|
|
#
|
2010-12-12 09:51:52 -05:00
|
|
|
# ==== Parameters
|
|
|
|
# * zone_id<~Integer> - Id of zone to delete
|
|
|
|
# ==== Returns
|
2010-12-13 08:51:04 -05:00
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * 'status'<~Integer> - 200 indicates success
|
|
|
|
|
2010-12-12 09:51:52 -05:00
|
|
|
def delete_zone(zone_id)
|
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'DELETE',
|
2010-12-12 18:02:02 -05:00
|
|
|
:path => "/api/1.1/zones/#{zone_id}.xml"
|
2010-12-12 09:51:52 -05:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|