Class: SecretConfig::Providers::Provider

Inherits:
Object
  • Object
show all
Defined in:
lib/secret_config/providers/provider.rb

Overview

Abstract Base provider

Direct Known Subclasses

File, Ssm

Instance Method Summary collapse

Instance Method Details

#delete(key) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/secret_config/providers/provider.rb', line 9

def delete(key)
  raise NotImplementedError
end

#set(key, value) ⇒ Object

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/secret_config/providers/provider.rb', line 5

def set(key, value)
  raise NotImplementedError
end

#to_h(path) ⇒ Object



13
14
15
16
17
# File 'lib/secret_config/providers/provider.rb', line 13

def to_h(path)
  h = {}
  each(path) { |key, value| h[key] = value }
  h
end