DefaultClonerConfig added, removed obsolette bash file
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
29
repo_cloner/lib/default_cloner_config.py
Normal file
29
repo_cloner/lib/default_cloner_config.py
Normal file
@@ -0,0 +1,29 @@
|
||||
class DefaultClonerConfig:
|
||||
def __init__(self):
|
||||
properties = list(filter(lambda prop: not str(prop).startswith("__"), dir(self)))
|
||||
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:
|
||||
return 5
|
||||
|
||||
@property
|
||||
def cloner_submodules(self) -> bool:
|
||||
return True
|
||||
|
||||
@property
|
||||
def cloner_submodule_depth(self) -> int:
|
||||
return 50000
|
||||
|
||||
def has_property(self, prop: str) -> bool:
|
||||
if prop == "has_property":
|
||||
return False
|
||||
return prop in self.__properties
|
||||
Reference in New Issue
Block a user