2011-09-27 10:48:38 -04:00
|
|
|
module Fog
|
|
|
|
module Parsers
|
|
|
|
module AWS
|
2011-09-27 11:03:11 -04:00
|
|
|
module Elasticache
|
|
|
|
require 'fog/aws/parsers/elasticache/security_group_parser'
|
2011-09-27 10:48:38 -04:00
|
|
|
|
2011-09-27 10:52:46 -04:00
|
|
|
class SingleSecurityGroup < SecurityGroupParser
|
2011-09-27 10:48:38 -04:00
|
|
|
|
|
|
|
def reset
|
|
|
|
super
|
|
|
|
@response = { 'ResponseMetadata' => {} }
|
|
|
|
end
|
|
|
|
|
|
|
|
def start_element(name, attrs = [])
|
|
|
|
super
|
|
|
|
end
|
|
|
|
|
|
|
|
def end_element(name)
|
|
|
|
case name
|
2011-09-27 10:52:46 -04:00
|
|
|
when 'CacheSecurityGroup'
|
|
|
|
@response[name] = @security_group
|
2011-09-27 10:48:38 -04:00
|
|
|
reset_security_group
|
|
|
|
|
|
|
|
when 'RequestId'
|
|
|
|
@response['ResponseMetadata'][name] = value
|
|
|
|
else
|
|
|
|
super
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|