module CredStash::Repository
Public Class Methods
instance()
click to toggle source
# File lib/cred_stash/repository.rb, line 6 def self.instance case CredStash.config.storage when :dynamodb DynamoDB.new when :dynamodb_local endpoint = ENV['DYNAMODB_URL'] || 'http://localhost:8000' DynamoDB.new( client: Aws::DynamoDB::Client.new( endpoint: endpoint, ) ) else raise ArgumentError, "Unknown storage #{CredStash.config.storage}" end end