| 181 | |
| 182 | |
| 183 | class ScmUrlMgr(object): |
| 184 | def __init__(self, scm_type): |
| 185 | self._client = None |
| 186 | if scm_type == "svn": |
| 187 | self._client = SvnUrlMgr() |
| 188 | elif scm_type == "git": |
| 189 | self._client = GitUrlMgr() |
| 190 | elif scm_type == "tgit": |
| 191 | self._client = GitUrlMgr() |
| 192 | else: |
| 193 | raise Exception("Not supported scm type: %s" % scm_type) |
| 194 | |
| 195 | def get_scm_url_mgr(self): |
| 196 | return self._client |
no outgoing calls
no test coverage detected