mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
whoops forgot to add these files
This commit is contained in:
parent
146d6e8b0c
commit
bac6906534
2 changed files with 39 additions and 0 deletions
25
lib/fog/dns/parsers/dynect/session.rb
Normal file
25
lib/fog/dns/parsers/dynect/session.rb
Normal file
|
@ -0,0 +1,25 @@
|
|||
module Fog
|
||||
module Parsers
|
||||
module Dynect
|
||||
module DNS
|
||||
|
||||
class Session < Fog::Parsers::Base
|
||||
|
||||
def reset
|
||||
@response = {}
|
||||
end
|
||||
|
||||
def end_element(name)
|
||||
case name
|
||||
when 'token'
|
||||
@response['API-Token'] = @value
|
||||
when 'version'
|
||||
@response['API-Version'] = @value
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
14
lib/fog/providers/dynect.rb
Normal file
14
lib/fog/providers/dynect.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
require 'nokogiri'
|
||||
|
||||
require 'fog/core'
|
||||
require 'fog/core/parser'
|
||||
|
||||
module Fog
|
||||
module Dynect
|
||||
|
||||
extend Fog::Provider
|
||||
|
||||
service(:dns, 'dns/dynect')
|
||||
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue