(self)
| 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 = {} |
no test coverage detected