mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
3c69e06f07
all DNS functions are now working and tested. any functions that have optional parameters can now accept these comments cleaned up note, no mocks or test cases. will speak to geemus to learn more about how these work.
37 lines
969 B
Ruby
37 lines
969 B
Ruby
module Fog
|
|
module Slicehost
|
|
class Compute
|
|
class Real
|
|
|
|
require 'fog/slicehost/parsers/compute/get_zones'
|
|
|
|
# Get list of all DNS zones hosted on Slicehost (for this account)
|
|
#
|
|
# ==== Returns
|
|
# * response<~Excon::Response>:
|
|
# * body<~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::Compute::GetZones.new,
|
|
:path => 'zones.xml'
|
|
)
|
|
end
|
|
|
|
end
|
|
|
|
class Mock
|
|
|
|
def get_zones
|
|
Fog::Mock.not_implemented
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|