创建ssh私钥文件 :return:
(self)
| 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 | """ |
no test coverage detected