2011-06-17 06:17:02 -04:00
|
|
|
module Fog
|
2011-07-14 20:22:43 -04:00
|
|
|
module DNS
|
|
|
|
class Dynect
|
2011-06-17 06:17:02 -04:00
|
|
|
class Real
|
|
|
|
|
2011-07-14 20:22:43 -04:00
|
|
|
# Get one or more zones
|
2011-06-17 06:17:02 -04:00
|
|
|
#
|
2011-07-14 20:22:43 -04:00
|
|
|
# ==== Parameters
|
|
|
|
# * options<~Hash>:
|
|
|
|
# * zone<~String> - name of zone to lookup, or omit to return list of zones
|
2011-06-17 06:17:02 -04:00
|
|
|
|
2011-07-14 20:22:43 -04:00
|
|
|
def get_zone(options = {})
|
2011-06-17 06:17:02 -04:00
|
|
|
request(
|
2011-07-14 20:22:43 -04:00
|
|
|
:expects => 200,
|
|
|
|
:method => :get,
|
|
|
|
:path => ['Zone', options['zone']].compact.join('/')
|
|
|
|
)
|
2011-06-17 06:17:02 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|