Sha256: 88e920dffc0e3ba139c71718d83bce06c1a45111cd41f523ab78776e6f01ad2b

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

require 'cred_stash/repository/item'
require 'cred_stash/repository/dynamo_db'

module CredStash::Repository
  def self.instance
    case CredStash.config.storage
    when :dynamodb
      DynamoDB.new
    else
      raise ArgumentError, "Unknown storage #{CredStash.config.storage}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rcredstash-0.9.0 lib/cred_stash/repository.rb
rcredstash-0.8.0 lib/cred_stash/repository.rb
rcredstash-0.7.0 lib/cred_stash/repository.rb
rcredstash-0.6.0 lib/cred_stash/repository.rb
rcredstash-0.5.0 lib/cred_stash/repository.rb