MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _extract_resource

Function _extract_resource

pre_commit/languages/ruby.py:82–85  ·  view source on GitHub ↗
(filename: str, dest: str)

Source from the content-addressed store, hash-verified

80
81
82def _extract_resource(filename: str, dest: str) -> None:
83 with _resource_bytesio(filename) as bio:
84 with tarfile.open(fileobj=bio) as tf:
85 tf.extractall(dest)
86
87
88def _install_rbenv(

Callers 1

_install_rbenvFunction · 0.85

Calls 2

_resource_bytesioFunction · 0.85
extractallMethod · 0.80

Tested by

no test coverage detected