MCPcopy Create free account
hub / github.com/apache/solr / save

Method save

dev-tools/scripts/releaseWizard.py:552–559  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

550 print("Failed to load state from %s: %s" % (state_file, e))
551
552 def save(self):
553 print("Saving")
554 if not os.path.exists(os.path.join(self.config_path, self.release_version)):
555 print("Creating folder %s" % os.path.join(self.config_path, self.release_version))
556 os.makedirs(os.path.join(self.config_path, self.release_version))
557
558 with open(os.path.join(self.config_path, self.release_version, 'state.yaml'), 'w') as fp:
559 yaml.dump(self.to_dict(), fp, sort_keys=False, default_flow_style=False)
560
561 def clear(self):
562 self.previous_rcs = {}

Callers 8

clear_rcMethod · 0.95
new_rcMethod · 0.95
clearMethod · 0.95
mainFunction · 0.95
display_and_confirmMethod · 0.80
runMethod · 0.80
create_model.pyFile · 0.80
ui-grid.min.jsFile · 0.80

Calls 4

to_dictMethod · 0.95
dumpMethod · 0.80
existsMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected