Improved logging and updated modules
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import os
|
||||
|
||||
from sh_edraft.logging.base.logger_base import LoggerBase
|
||||
from sh_edraft.publish.base import PublisherBase
|
||||
from sh_edraft.service.base import ServiceProviderBase
|
||||
from sh_edraft.source_code.model import Version
|
||||
@@ -11,6 +12,7 @@ class PublisherTest:
|
||||
|
||||
@staticmethod
|
||||
def start(services: ServiceProviderBase):
|
||||
version = Version(2020, 12, 5).to_dict()
|
||||
templates = [
|
||||
Template(
|
||||
'../../publish_templates/*_template.txt',
|
||||
@@ -23,7 +25,7 @@ class PublisherTest:
|
||||
', see LICENSE for more details.',
|
||||
'',
|
||||
'Sven Heidemann',
|
||||
Version(2020, 12, 0.1).to_dict()
|
||||
version
|
||||
),
|
||||
Template(
|
||||
'../../publish_templates/*_template.txt',
|
||||
@@ -36,14 +38,14 @@ class PublisherTest:
|
||||
', see LICENSE for more details.',
|
||||
'',
|
||||
'Sven Heidemann',
|
||||
Version(2020, 12, 0.1).to_dict()
|
||||
version
|
||||
)
|
||||
]
|
||||
|
||||
source = '../'
|
||||
dist = '../../dist'
|
||||
|
||||
services.add_singleton(Publisher, None, source, dist, templates)
|
||||
services.add_transient(Publisher, services.get_service(LoggerBase), source, dist, templates)
|
||||
publisher: Publisher = services.get_service(PublisherBase)
|
||||
|
||||
publisher.exclude('../tests/')
|
||||
|
||||
Reference in New Issue
Block a user