outs/deps: remove loads method

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-06-04 22:28:14 +03:00
parent fbfdecd1de
commit 5c1748c15c
8 changed files with 2 additions and 32 deletions
+1 -1
View File
@@ -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
-4
View File
@@ -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)
-4
View File
@@ -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)
-4
View File
@@ -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)
+1 -1
View File
@@ -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
-6
View File
@@ -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
-6
View File
@@ -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
-6
View File
@@ -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