MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / __get_ssh_file

Method __get_ssh_file

client/node/toolloader/gitload.py:101–112  ·  view source on GitHub ↗

创建ssh私钥文件 :return:

(self)

Source from the content-addressed store, hash-verified

99 return scm_client
100
101 def __get_ssh_file(self):
102 """
103 创建ssh私钥文件
104 :return:
105 """
106 if self._scm_auth_info:
107 if "scm_ssh_key" in self._scm_auth_info:
108 if self._scm_auth_info["scm_ssh_key"]:
109 ssh_key = Crypto(settings.PASSWORD_KEY).decrypt(
110 self._scm_auth_info["scm_ssh_key"])
111 return SshFlieClient.create_temp_ssh_file(ssh_key, self._ssh_temp_file)
112 return None
113
114 def load(self):
115 """

Callers 1

__init_scm_clientMethod · 0.95

Calls 1

decryptMethod · 0.45

Tested by

no test coverage detected