Sha256: dd17853ed9acd677ae5d2e17e5fe97f7cb035c03e6f15bdf6eac78c8a2f0b6d5
Contents?: true
Size: 1.69 KB
Versions: 29
Compression:
Stored size: 1.69 KB
Contents
module Fog module Parsers module AWS module Elasticache require 'fog/aws/parsers/elasticache/base' class EngineDefaultsParser < Base def reset super reset_engine_defaults end def reset_engine_defaults @engine_defaults = { 'CacheNodeTypeSpecificParameters' => [], 'Parameters' => [], } end def start_element(name, attrs = []) case name when 'CacheNodeTypeSpecificParameter', 'Parameter' @parameter = {} when 'CacheNodeTypeSpecificValues' @parameter[name] = [] when 'CacheNodeTypeSpecificValue' @node_specific_value = {} else super end end def end_element(name) case name when 'CacheParameterGroupFamily' @engine_defaults[name] = value when 'CacheNodeTypeSpecificParameter', 'Parameter' if not @parameter.empty? @engine_defaults["#{name}s"] << @parameter end when 'AllowedValues', 'DataType', 'Description', 'IsModifiable', 'MinimumEngineVersion', 'ParameterName', 'Source' @parameter[name] = value when 'CacheNodeType', 'Value' @node_specific_value[name] = value when 'CacheNodeTypeSpecificValue' if not @node_specific_value.empty? @parameter["#{name}s"] << @node_specific_value end else super end end end end end end end
Version data entries
29 entries across 29 versions & 9 rubygems