Sha256: 4bc4711ccf77e2198b773b921a81243a57fae1a2e4c335904976f728aa242907

Contents?: true

Size: 674 Bytes

Versions: 1

Compression:

Stored size: 674 Bytes

Contents

require 'rackspace-fog/core/collection'
require 'rackspace-fog/aws/models/elasticache/parameter_group'

module Fog
  module AWS
    class Elasticache

      class ParameterGroups < Fog::Collection
        model Fog::AWS::Elasticache::ParameterGroup

        def all
          load(
            connection.describe_cache_parameter_groups.body['CacheParameterGroups']
          )
        end

        def get(identity)
          new(
            connection.describe_cache_parameter_groups(
              identity
            ).body['CacheParameterGroups'].first
          )
        rescue Fog::AWS::Elasticache::NotFound
          nil
        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/models/elasticache/parameter_groups.rb