예제 #1
0
def main(args):
    set_global_config(Config(True))
    repo_name = str(args.repo)
    if repo_name == "release":
        repo.pull_repo(Config.get_global().release_loc)
    elif repo_name == "content_repos":
        for repo_loc in Config.get_global().content_repos:
            repo.pull_repo(repo_loc)
    elif repo_name == "inst":
        repo.pull_repo(Config.get_global().release_loc)
        repo.update_inst_server()
    else:
        assert False, "Shouldn't reach here. Is some repo unimplemented?"
    return 0
예제 #2
0
 def build_answers(self) -> None:
     """Build answers and put them into the release location."""
     repo.pull_repo(Config.get_global().release_loc)
     self.build_ans_pdf()
예제 #3
0
 def build_discussion(self) -> None:
     """Build the discussion."""
     repo.pull_repo(Config.get_global().release_loc)
     self.build_dis_pdf()
예제 #4
0
 def build_solutions(self) -> None:
     """Build solutions and put them into the release location."""
     repo.pull_repo(Config.get_global().release_loc)
     self.build_sol_pdf()
     # TODO: also bundle iPythons if present
     self.generate_self_grade_form()
예제 #5
0
 def build_homework(self) -> None:
     """Build the homework problem set (PDF and piazza images)."""
     repo.pull_repo(Config.get_global().release_loc)
     self.build_prob_pdf()
     # TODO: also bundle iPythons if present
     self.build_piazza_images()