QuasarAppCI/BuildBotLib/secretManager.py

13 lines
295 B
Python
Raw Normal View History

2019-07-22 16:56:56 +03:00
# This Python file uses the following encoding: utf-8
import json
from pathlib import Path
class SecretManager:
def __init__(self, jsFile):
contents = Path(jsFile).read_text()
self.jsfile = json.loads(contents)
def getValue(self, key):
return self.jsfile[key]