Sha256: fd369c93bfb960b35a5bfa99f0c49b17d405f385597c72d442b02a345eb1bf5d

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module Elasticache
        require 'rackspace-fog/aws/parsers/elasticache/security_group_parser'

        class DescribeSecurityGroups < SecurityGroupParser

          def reset
            super
            @response['CacheSecurityGroups'] = []
          end

          def end_element(name)
            case name
            when 'CacheSecurityGroup'
              @response["#{name}s"] << @security_group
              reset_security_group
            else
              super
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/parsers/elasticache/describe_security_groups.rb