MCPcopy Create free account
hub / github.com/aws/aws-cli / update_metadata

Method update_metadata

backends/build_system/utils.py:249–259  ·  view source on GitHub ↗
(self, dirname, **kwargs)

Source from the content-addressed store, hash-verified

247 shutil.copytree(src, dst)
248
249 def update_metadata(self, dirname, **kwargs):
250 print("Update metadata values %s" % kwargs)
251 metadata_file = os.path.join(
252 dirname, "awscli", "data", "metadata.json"
253 )
254 with open(metadata_file) as f:
255 metadata = json.load(f)
256 for key, value in kwargs.items():
257 metadata[key] = value
258 with open(metadata_file, "w") as f:
259 json.dump(metadata, f)
260
261 def create_venv(self, name: str, with_pip: bool = True):
262 venv.create(name, with_pip=with_pip)

Callers 2

_update_metadataMethod · 0.45
_update_metadataMethod · 0.45

Calls 2

loadMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected