2023-03-09 13:25:25 +01:00
|
|
|
from pathlib import Path
|
2023-03-17 11:29:25 +01:00
|
|
|
from src.main.python.ddadevops.release_mixin.infrastructure_api import SystemApi
|
2023-03-09 13:25:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Helper():
|
|
|
|
def __init__(self, file_name = 'config.json'):
|
|
|
|
self.TEST_FILE_NAME = file_name
|
2023-03-10 13:37:45 +01:00
|
|
|
self.TEST_FILE_ROOT = Path('src/test/resources/')
|
2023-03-09 13:25:25 +01:00
|
|
|
self.TEST_FILE_PATH = self.TEST_FILE_ROOT / self.TEST_FILE_NAME
|
|
|
|
|
|
|
|
def copy_files(self, source: Path, target: Path):
|
2023-03-17 11:29:25 +01:00
|
|
|
api = SystemApi()
|
2023-03-09 13:25:25 +01:00
|
|
|
api.run_checked('cp', source, target)
|