How to use the rpg.conf.Conf function in rpg

To help you get started, we’ve selected a few rpg 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 rh-lab-q / rpg / tests / unit / test_conf.py View on Github external
def test_exclude_plug(self):
        sys.argv = ["rpg", "--disable-plugin", str("TestPlugin")]
        conf = Conf()
        conf.parse_cmdline()
        self.assertEqual(str(["TestPlugin"]), str(conf.exclude))
github rh-lab-q / rpg / tests / unit / test_conf.py View on Github external
def test_include_dir(self):
        sys.argv = ["rpg", "--plugin-dir", str(self.test_project_dir / "py")]
        conf = Conf()
        conf.parse_cmdline()
        self.assertEqual(str(['tests/project/py']), str(conf.directories))
github rh-lab-q / rpg / rpg / __init__.py View on Github external
def __init__(self):
        self.conf = Conf()
        self._setup_logging()
        self._project_builder = ProjectBuilder()
        self.spec = Spec()
        self.sack = None
        self._package_builder = PackageBuilder()