Class: CredStash::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/cred_stash/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Config

Returns a new instance of Config.



15
16
17
# File 'lib/cred_stash/config.rb', line 15

def initialize
  reset!
end

Instance Attribute Details

#dynamo_client ⇒ Object

Returns the value of attribute dynamo_client.



13
14
15
# File 'lib/cred_stash/config.rb', line 13

def dynamo_client
  @dynamo_client
end

#kms_client ⇒ Object

Returns the value of attribute kms_client.



13
14
15
# File 'lib/cred_stash/config.rb', line 13

def kms_client
  @kms_client
end

#storage ⇒ Object

Returns the value of attribute storage.



13
14
15
# File 'lib/cred_stash/config.rb', line 13

def storage
  @storage
end

#table_name ⇒ Object

Returns the value of attribute table_name.



13
14
15
# File 'lib/cred_stash/config.rb', line 13

def table_name
  @table_name
end

Instance Method Details

#reset! ⇒ Object



19
20
21
22
23
24
# File 'lib/cred_stash/config.rb', line 19

def reset!
  @table_name = 'credential-store'
  @storage = :dynamodb
  @kms_client = Aws::KMS::Client.new
  @dynamo_client = Aws::DynamoDB::Client.new
end