diff options
author | Jürg Billeter <j@bitron.ch> | 2018-02-27 10:56:17 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2018-02-27 11:43:15 +0000 |
commit | 0c4f62ac4da67a2f3e5cd12811078f90124a89ee (patch) | |
tree | 4b56be625e60b3b536dbad71718071b2103940eb | |
parent | 8c1979ddc245920eb3bf9c38e6776e4fa0f68947 (diff) | |
download | buildstream-0c4f62ac4da67a2f3e5cd12811078f90124a89ee.tar.gz |
_artifactcache/artifactcache.py: Add pull() to abstract base class
-rw-r--r-- | buildstream/_artifactcache/artifactcache.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/buildstream/_artifactcache/artifactcache.py b/buildstream/_artifactcache/artifactcache.py index 0a20969e9..2330e5777 100644 --- a/buildstream/_artifactcache/artifactcache.py +++ b/buildstream/_artifactcache/artifactcache.py @@ -258,3 +258,15 @@ class ArtifactCache(): def push(self, element): raise ImplError("Cache '{kind}' does not implement push()" .format(kind=type(self).__name__)) + + # pull(): + # + # Pull artifact from one of the configured remote repositories. + # + # Args: + # element (Element): The Element whose artifact is to be fetched + # progress (callable): The progress callback, if any + # + def pull(self, element, progress=None): + raise ImplError("Cache '{kind}' does not implement pull()" + .format(kind=type(self).__name__)) |