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

Method store

app/objects/c_source.py:93–103  ·  view source on GitHub ↗
(self, ram)

Source from the content-addressed store, hash-verified

91 self.plugin = plugin
92
93 def store(self, ram):
94 existing = self.retrieve(ram['sources'], self.unique)
95 if not existing:
96 ram['sources'].append(self)
97 return self.retrieve(ram['sources'], self.unique)
98 existing.update('name', self.name)
99 existing.update('facts', self.facts)
100 existing.update('rules', self.rules)
101 existing.update('relationships', self.relationships)
102 existing.update('plugin', self.plugin)
103 return existing

Callers

nothing calls this directly

Calls 2

retrieveMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected