yapf
This commit is contained in:
parent
8ba71f7a45
commit
c7f1944bd5
2 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Reference in a new issue