This commit is contained in:
Joseph Schorr 2017-07-11 15:33:48 +03:00
parent 8ba71f7a45
commit c7f1944bd5
2 changed files with 4 additions and 1 deletions

View file

@ -8,6 +8,7 @@ class Build(namedtuple('Build', ['uuid', 'logs_archived'])):
Build represents a single build in the build system. Build represents a single build in the build system.
""" """
@add_metaclass(ABCMeta) @add_metaclass(ABCMeta)
class BuildLogsArchiverWorkerDataInterface(object): class BuildLogsArchiverWorkerDataInterface(object):
""" """

View file

@ -1,6 +1,7 @@
from data import model from data import model
from workers.buildlogsarchiver.models_interface import Build, BuildLogsArchiverWorkerDataInterface from workers.buildlogsarchiver.models_interface import Build, BuildLogsArchiverWorkerDataInterface
class PreOCIModel(BuildLogsArchiverWorkerDataInterface): class PreOCIModel(BuildLogsArchiverWorkerDataInterface):
def get_archivable_build(self): def get_archivable_build(self):
build = model.build.get_archivable_build() build = model.build.get_archivable_build()
@ -27,4 +28,5 @@ class PreOCIModel(BuildLogsArchiverWorkerDataInterface):
return Build(build.uuid, build.logs_archived) return Build(build.uuid, build.logs_archived)
pre_oci_model = PreOCIModel() pre_oci_model = PreOCIModel()