(self)
| 59 | |
| 60 | class CmdDataPush(CmdDataBase): |
| 61 | def run(self): |
| 62 | from dvc.exceptions import DvcException |
| 63 | |
| 64 | try: |
| 65 | processed_files_count = self.repo.push( |
| 66 | targets=self.args.targets, |
| 67 | jobs=self.args.jobs, |
| 68 | remote=self.args.remote, |
| 69 | all_branches=self.args.all_branches, |
| 70 | all_tags=self.args.all_tags, |
| 71 | all_commits=self.args.all_commits, |
| 72 | with_deps=self.args.with_deps, |
| 73 | recursive=self.args.recursive, |
| 74 | run_cache=self.args.run_cache, |
| 75 | glob=self.args.glob, |
| 76 | ) |
| 77 | self.log_summary({"pushed": processed_files_count}) |
| 78 | except DvcException: |
| 79 | logger.exception("failed to push data to the cloud") |
| 80 | return 1 |
| 81 | return 0 |
| 82 | |
| 83 | |
| 84 | class CmdDataFetch(CmdDataBase): |
nothing calls this directly
no test coverage detected