Ejemplo n.º 1
0
    def __init__(self, args):
        self.product = args.product
        self.branch = args.branch
        self.version = args.version
        self.abs_data_file = os.path.join(
            RELEASES_PATH, "{}-{}-{}.json".format(self.product, self.branch,
                                                  self.version))
        self.abs_wiki_file = os.path.join(
            RELEASES_PATH, "{}-{}-{}.md".format(self.product, self.branch,
                                                self.version))
        self.wiki_template_file = WIKI_TEMPLATES[self.product][self.branch]
        self.changes = get_update_data(args)
        self.commit_msg = "updating {} {} release. updated {} wiki".format(
            self.product, self.version, os.path.basename(self.abs_wiki_file))

        self.pre_run_check()
Ejemplo n.º 2
0
    def __init__(self, args):
        self.product = args.product
        self.branch = args.branch
        self.version = args.version
        self.abs_data_file = os.path.join(
            RELEASES_PATH, "{}-{}-{}.json".format(self.product, self.branch, self.version)
        )
        self.abs_wiki_file = os.path.join(
            RELEASES_PATH, "{}-{}-{}.md".format(self.product, self.branch, self.version)
        )
        self.wiki_template_file = WIKI_TEMPLATES[self.product][self.branch]
        self.changes = get_update_data(args)
        self.commit_msg = "updating {} {} release. updated {} wiki".format(
            self.product, self.version, os.path.basename(self.abs_wiki_file)
        )

        self.pre_run_check()