Dispatches a string command to a method.
(self, args)
| 63 | env["_MSPDBSRV_ENDPOINT_"] = endpoint_name |
| 64 | |
| 65 | def Dispatch(self, args): |
| 66 | """Dispatches a string command to a method.""" |
| 67 | if len(args) < 1: |
| 68 | raise Exception("Not enough arguments") |
| 69 | |
| 70 | method = "Exec%s" % self._CommandifyName(args[0]) |
| 71 | return getattr(self, method)(*args[1:]) |
| 72 | |
| 73 | def _CommandifyName(self, name_string): |
| 74 | """Transforms a tool name like recursive-mirror to RecursiveMirror.""" |