mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
b1ddc8bf7a
can now add/edit/delete zones in the Slicehost DNS service. Includes the methods create_zone, delete_zone, get_zones, get_zone. Note, there are no mocks or test cases.
26 lines
454 B
Ruby
26 lines
454 B
Ruby
module Fog
|
|
module Parsers
|
|
module Slicehost
|
|
module Compute
|
|
|
|
class CreateZone < Fog::Parsers::Base
|
|
|
|
def reset
|
|
@response = {}
|
|
end
|
|
|
|
def end_element(name)
|
|
case name
|
|
when 'ttl', 'id'
|
|
@response[name] = @value.to_i
|
|
when 'origin', 'active'
|
|
@response[name] = @value
|
|
end
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|