Created
April 11, 2021 16:47
-
-
Save JelsB/57473919390e3fa616eafffcfb7e4260 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RawConfig: | |
""" | |
Raw JSON configuration of the application and of all infrastructure resources for | |
each environment and. | |
""" | |
def __init__(self, config_file: Path): | |
self._all_config: Any = self._read_config(config_file) | |
self._environments_config: Any = self._all_config['environments'] | |
self._default: Any = self._environments_config['default'] | |
self.development: Any = self._get_config('development') | |
self.staging: Any = self._get_config('staging') | |
self.production: Any = self._get_config('production') | |
self.application: Any = self._all_config['application'] | |
# Implementation of reading and parsing logic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment