tool config配置库管理
| 29 | |
| 30 | |
| 31 | class ToolConfig(object): |
| 32 | """tool config配置库管理""" |
| 33 | def __init__(self): |
| 34 | self._url = settings.TOOL_CONFIG_URL |
| 35 | self._tool_config_dir_name = BaseScmUrlMgr.get_last_dir_name_from_url(self._url) |
| 36 | self._tool_config_dir_path = os.path.join(settings.TOOL_BASE_DIR, self._tool_config_dir_name) |
| 37 | |
| 38 | def get_tool_config_url(self): |
| 39 | return self._url |
| 40 | |
| 41 | def get_tool_config_dir_name(self): |
| 42 | return self._tool_config_dir_name |
| 43 | |
| 44 | def get_tool_config_dir_path(self): |
| 45 | return self._tool_config_dir_path |
| 46 | |
| 47 | |
| 48 | class ConfigLoader(object): |
no outgoing calls
no test coverage detected