iterative/dvc

View on GitHub
dvc/repo/push.py

Summary

Maintainability
A
2 hrs
Test Coverage
from __future__ import unicode_literals


def push(
    self,
    targets=None,
    jobs=None,
    remote=None,
    all_branches=False,
    with_deps=False,
    all_tags=False,
    recursive=False,
):
    with self.state:
        used = self.used_cache(
            targets,
            all_branches=all_branches,
            all_tags=all_tags,
            with_deps=with_deps,
            force=True,
            remote=remote,
            jobs=jobs,
            recursive=recursive,
        )["local"]
        return self.cloud.push(used, jobs, remote=remote)