How to use the debops.config._configfiles function in debops

To help you get started, we’ve selected a few debops examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github debops / debops-tools / tests / test_config.py View on Github external
def setUp(self):
        self.sandbox = tempfile.mkdtemp()
        self.addCleanup(shutil.rmtree, self.sandbox)
        self._saved_configfiles = debops.config._configfiles[:]
        # remove '/etc/debobs.cfg' to make results predictable
        debops.config._configfiles.remove('/etc/debops.cfg')
github debops / debops-tools / tests / test_config.py View on Github external
def tearDown(self):
        debops.config._configfiles = self._saved_configfiles[:]
github debops / debops-tools / tests / test_config.py View on Github external
def _read_config(self, project_dir):
        # refresh debops._configfiles with set environment
        cfn = debops.config._get_config_filenames()
        cfn.remove('/etc/debops.cfg')
        debops.config._configfiles = cfn
        return debops.config.read_config(project_dir)