Ejemplo n.º 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
Ejemplo n.º 2
0
 def push_answers(self) -> None:
     """Push answers to website."""
     self.push_release_repo()
     repo.update_inst_server()
Ejemplo n.º 3
0
 def push_discussion(self):
     """Push out this homework to the website and Piazza."""
     self.push_release_repo()
     repo.update_inst_server()
Ejemplo n.º 4
0
 def push_solutions(self) -> None:
     """Push solutions to website and Piazza."""
     self.push_release_repo()
     repo.update_inst_server()
     self.post_solutions_to_piazza()
     self.create_gradescope_assignment_for_self_grades()
Ejemplo n.º 5
0
 def push_homework(self):
     """Push out this homework to the website and Piazza."""
     self.push_release_repo()
     repo.update_inst_server()
     self.post_to_piazza()
     self.create_gradescope_assignment_for_homework()