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

Method store

app/objects/c_plugin.py:42–49  ·  view source on GitHub ↗
(self, ram)

Source from the content-addressed store, hash-verified

40 self.access = access if access else self.Access.APP
41
42 def store(self, ram):
43 existing = self.retrieve(ram['plugins'], self.unique)
44 if not existing:
45 ram['plugins'].append(self)
46 return self.retrieve(ram['plugins'], self.unique)
47 else:
48 existing.update('enabled', self.enabled)
49 return existing
50
51 def load_plugin(self):
52 try:

Callers

nothing calls this directly

Calls 2

retrieveMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected