Sha256: 2472a97f8cab49379f490b2c368afd33f90644562a723c3c9cb17cb80038fdd8

Contents?: true

Size: 654 Bytes

Versions: 36

Compression:

Stored size: 654 Bytes

Contents

require 'fog/core/collection'
require '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

36 entries across 36 versions & 13 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/aws/models/elasticache/parameter_groups.rb
fog-nirvanix-1.8.1 lib/fog/aws/models/elasticache/parameter_groups.rb
fog-parser-fix-1.6.1 lib/fog/aws/models/elasticache/parameter_groups.rb
fog-test-again-1.6.0 lib/fog/aws/models/elasticache/parameter_groups.rb
fog-parser-fix-1.6.0 lib/fog/aws/models/elasticache/parameter_groups.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/aws/models/elasticache/parameter_groups.rb
fog-sgonyea-1.8.1 lib/fog/aws/models/elasticache/parameter_groups.rb
fog-1.8.0 lib/fog/aws/models/elasticache/parameter_groups.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/aws/models/elasticache/parameter_groups.rb
fog-1.7.0 lib/fog/aws/models/elasticache/parameter_groups.rb
fog-1.6.0 lib/fog/aws/models/elasticache/parameter_groups.rb
fog-1.5.0 lib/fog/aws/models/elasticache/parameter_groups.rb
fog-1.4.0 lib/fog/aws/models/elasticache/parameter_groups.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/elasticache/parameter_groups.rb
michiels-fog-1.3.1 lib/fog/aws/models/elasticache/parameter_groups.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/models/elasticache/parameter_groups.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/elasticache/parameter_groups.rb
fog-1.3.1 lib/fog/aws/models/elasticache/parameter_groups.rb
fog-1.3.0 lib/fog/aws/models/elasticache/parameter_groups.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/elasticache/parameter_groups.rb