MCPcopy
hub / github.com/apache/caldera / store

Method store

app/objects/c_operation.py:164–172  ·  view source on GitHub ↗
(self, ram)

Source from the content-addressed store, hash-verified

162 self.rules = source.rules
163
164 def store(self, ram):
165 existing = self.retrieve(ram['operations'], self.unique)
166 if not existing:
167 ram['operations'].append(self)
168 return self.retrieve(ram['operations'], self.unique)
169 existing.update('state', self.state)
170 existing.update('autonomous', self.autonomous)
171 existing.update('obfuscator', self.obfuscator)
172 return existing
173
174 def set_start_details(self):
175 self.id = self.id if self.id else str(uuid.uuid4())

Callers

nothing calls this directly

Calls 2

retrieveMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected