Class: Secros
Defined Under Namespace
Modules: Paths
Instance Method Summary collapse
- #file(key) ⇒ Object
-
#initialize(path) ⇒ Secros
constructor
A new instance of Secros.
- #value(key) ⇒ Object
Methods included from Paths
#root_path, #secret_files_path, #secrets_path
Constructor Details
#initialize(path) ⇒ Secros
Returns a new instance of Secros.
6 7 8 |
# File 'lib/secros.rb', line 6 def initialize(path) @root_path = path end |
Instance Method Details
#file(key) ⇒ Object
14 15 16 |
# File 'lib/secros.rb', line 14 def file(key) File.join(secret_files_path, secrets[:files][normalized_key(key)]) end |
#value(key) ⇒ Object
10 11 12 |
# File 'lib/secros.rb', line 10 def value(key) secrets[:values][normalized_key(key)] end |