mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
e081fac0b5
items added but not yet tested. Will continue to add the rest of the methods and then do a big testing cycle
31 lines
636 B
Ruby
31 lines
636 B
Ruby
module Fog
|
|
module Slicehost
|
|
class Compute
|
|
class Real
|
|
|
|
# Delete a zone from Slicehost's DNS
|
|
# ==== Parameters
|
|
# * zone_id<~Integer> - Id of zone to delete
|
|
#
|
|
# ==== Returns
|
|
# * response<~Excon::Response>: - HTTP status code will be result
|
|
def delete_zone(zone_id)
|
|
request(
|
|
:expects => 200,
|
|
:method => 'DELETE',
|
|
:path => "/api/1.1./zones/#{zone_id}.xml"
|
|
)
|
|
end
|
|
|
|
end
|
|
|
|
class Mock
|
|
|
|
def delete_zone(zone_id)
|
|
Fog::Mock.not_implemented
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|