mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 23:10:10 +01:00
outs/deps: remove loads method
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -35,5 +35,5 @@ def loadd_from(stage, d_list):
|
||||
def loads_from(stage, s_list):
|
||||
ret = []
|
||||
for s in s_list:
|
||||
ret.append(_get(s).loads(stage, s))
|
||||
ret.append(_get(s)(stage, s))
|
||||
return ret
|
||||
|
||||
@@ -61,7 +61,3 @@ class DependencyBase(object):
|
||||
def loadd(cls, stage, d):
|
||||
path = d[cls.PARAM_PATH]
|
||||
return cls(stage, path)
|
||||
|
||||
@classmethod
|
||||
def loads(cls, stage, s):
|
||||
return cls(stage, s)
|
||||
|
||||
@@ -86,7 +86,3 @@ class DependencyLOCAL(DependencyBase):
|
||||
path = os.path.normpath(path)
|
||||
md5 = d.get(cls.PARAM_MD5, None)
|
||||
return cls(stage, path, md5=md5)
|
||||
|
||||
@classmethod
|
||||
def loads(cls, stage, s):
|
||||
return cls(stage, os.path.join(stage.cwd, s), md5=None)
|
||||
|
||||
@@ -54,7 +54,3 @@ class DependencyS3(DependencyBase):
|
||||
path = d[cls.PARAM_PATH]
|
||||
etag = d.get(cls.PARAM_ETAG, None)
|
||||
return cls(stage, path, etag=etag)
|
||||
|
||||
@classmethod
|
||||
def loads(cls, stage, s):
|
||||
return cls(stage, s, etag=None)
|
||||
|
||||
@@ -33,5 +33,5 @@ def loadd_from(stage, d_list):
|
||||
def loads_from(stage, s_list, use_cache=False):
|
||||
ret = []
|
||||
for s in s_list:
|
||||
ret.append(_get(s).loads(stage, s, use_cache=use_cache))
|
||||
ret.append(_get(s)(stage, s, use_cache=use_cache))
|
||||
return ret
|
||||
|
||||
@@ -28,12 +28,6 @@ class OutputGS(DependencyGS):
|
||||
ret.use_cache = d.get(cls.PARAM_CACHE, True)
|
||||
return ret
|
||||
|
||||
@classmethod
|
||||
def loads(cls, stage, s, use_cache=True):
|
||||
ret = super(OutputGS, cls).loads(stage, s)
|
||||
ret.use_cache = use_cache
|
||||
return ret
|
||||
|
||||
def changed(self):
|
||||
if super(OutputGS, self).changed():
|
||||
return True
|
||||
|
||||
@@ -38,12 +38,6 @@ class OutputLOCAL(DependencyLOCAL):
|
||||
ret.use_cache = d.get(cls.PARAM_CACHE, True)
|
||||
return ret
|
||||
|
||||
@classmethod
|
||||
def loads(cls, stage, s, use_cache=True):
|
||||
ret = super(OutputLOCAL, cls).loads(stage, s)
|
||||
ret.use_cache = use_cache
|
||||
return ret
|
||||
|
||||
def changed(self):
|
||||
if super(OutputLOCAL, self).changed():
|
||||
return True
|
||||
|
||||
@@ -28,12 +28,6 @@ class OutputS3(DependencyS3):
|
||||
ret.use_cache = d.get(cls.PARAM_CACHE, True)
|
||||
return ret
|
||||
|
||||
@classmethod
|
||||
def loads(cls, stage, s, use_cache=True):
|
||||
ret = super(OutputS3, cls).loads(stage, s)
|
||||
ret.use_cache = use_cache
|
||||
return ret
|
||||
|
||||
def changed(self):
|
||||
if super(OutputS3, self).changed():
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user