2022-06-26 02:16:51 +02:00
|
|
|
class DefaultClonerConfig:
|
|
|
|
def __init__(self):
|
2022-06-26 05:22:19 +02:00
|
|
|
properties = list(filter(lambda prop: not str(prop).startswith("_"), dir(self)))
|
2022-06-26 02:16:51 +02:00
|
|
|
self.__properties: list = properties
|
|
|
|
|
|
|
|
@property
|
|
|
|
def cloner_repo_url(self) -> str:
|
|
|
|
return ""
|
|
|
|
|
|
|
|
@property
|
|
|
|
def cloner_project_name(self) -> str:
|
|
|
|
return ""
|
|
|
|
|
|
|
|
@property
|
|
|
|
def cloner_interval(self) -> int:
|
2022-07-24 22:47:13 +02:00
|
|
|
return 0
|
2022-06-26 02:16:51 +02:00
|
|
|
|
|
|
|
@property
|
|
|
|
def cloner_submodules(self) -> bool:
|
|
|
|
return True
|
|
|
|
|
|
|
|
@property
|
|
|
|
def cloner_submodule_depth(self) -> int:
|
2022-08-06 02:10:48 +02:00
|
|
|
return 0
|
2022-06-26 02:16:51 +02:00
|
|
|
|
|
|
|
def has_property(self, prop: str) -> bool:
|
|
|
|
if prop == "has_property":
|
|
|
|
return False
|
|
|
|
return prop in self.__properties
|