Read the generated mlaunch startup file, get the command lines.
(self)
| 39 | self.tool.run(arg_str) |
| 40 | |
| 41 | def read_config(self): |
| 42 | """Read the generated mlaunch startup file, get the command lines.""" |
| 43 | fp = open(self.data_dir + '/.mlaunch_startup', 'r') |
| 44 | cfg = json.load(fp) |
| 45 | cmd = [cfg['startup_info'][x] for x in cfg['startup_info'].keys()] |
| 46 | return cfg, cmd |
| 47 | |
| 48 | def cmdlist_filter(self, cmdlist): |
| 49 | """Filter command lines to contain only [mongod|mongos] --parameter.""" |
no test coverage detected