How to use the foremast.configs function in foremast

To help you get started, we’ve selected a few foremast 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 foremast / foremast / src / foremast / runner.py View on Github external
def write_configs(self):
        """ Generates the configurations need for pipes """
        utils.banner("Generating Configs")
        if not self.gitlab_token_path:
            raise SystemExit('Must provide private token file as well.')
        self.configs = configs.process_git_configs(
            git_short=self.git_short,
            token_file=self.gitlab_token_path)

        configs.write_variables(app_configs=self.configs,
                                out_file=self.raw_path,
                                git_short=self.git_short)
github foremast / foremast / src / foremast / runner.py View on Github external
def write_configs(self):
        """ Generates the configurations need for pipes """
        utils.banner("Generating Configs")
        if not self.gitlab_token_path:
            raise SystemExit('Must provide private token file as well.')
        self.configs = configs.process_git_configs(
            git_short=self.git_short,
            token_file=self.gitlab_token_path)

        configs.write_variables(app_configs=self.configs,
                                out_file=self.raw_path,
                                git_short=self.git_short)
github foremast / foremast / src / foremast / runner.py View on Github external
def write_configs(self):
        """Generate the configurations needed for pipes."""
        utils.banner("Generating Configs")
        if not self.runway_dir:
            app_configs = configs.process_git_configs(git_short=self.git_short)
        else:
            app_configs = configs.process_runway_configs(runway_dir=self.runway_dir)

        self.configs = configs.write_variables(
            app_configs=app_configs, out_file=self.raw_path, git_short=self.git_short)
github foremast / foremast / src / foremast / runner.py View on Github external
def write_configs(self):
        """Generate the configurations needed for pipes."""
        utils.banner("Generating Configs")
        if not self.runway_dir:
            app_configs = configs.process_git_configs(git_short=self.git_short)
        else:
            app_configs = configs.process_runway_configs(runway_dir=self.runway_dir)

        self.configs = configs.write_variables(
            app_configs=app_configs, out_file=self.raw_path, git_short=self.git_short)