1) Add e-mail tunnel support 2) Modify all __new__ to get_instance() 3) init docker build scripts

This commit is contained in:
Liu Zhicong
2023-09-16 11:41:59 -07:00
parent ef9ab83e63
commit 43c70489e7
15 changed files with 272 additions and 70 deletions
+3 -3
View File
@@ -11,12 +11,12 @@ logger = logging.getLogger(__name__)
class AgentManager:
_instance = None
def __new__(cls):
@classmethod
def get_instance(cls):
if cls._instance is None:
cls._instance = super(AgentManager, cls).__new__(cls)
cls._instance = AgentManager()
return cls._instance
def initial(self,root_dir:str) -> None:
self.agent_templete_env : PackageEnv = PackageEnvManager().get_env(f"{root_dir}/templetes/templetes.cfg")
self.agent_env : PackageEnv = PackageEnvManager().get_env(f"{root_dir}/agents/agents.cfg")