MCPcopy
hub / github.com/rueckstiess/mtools / read_config

Method read_config

mtools/test/test_mlaunch_commandlines.py:41–46  ·  view source on GitHub ↗

Read the generated mlaunch startup file, get the command lines.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 4

cmdlist_printMethod · 0.95
cmdlist_assertMethod · 0.95
raises_ioerrorMethod · 0.95
test_invalid_hostnameMethod · 0.95

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected