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

Function _install_ruby

pre_commit/languages/ruby.py:104–112  ·  view source on GitHub ↗
(
        prefix: Prefix,
        version: str,
)

Source from the content-addressed store, hash-verified

102
103
104def _install_ruby(
105 prefix: Prefix,
106 version: str,
107) -> None: # pragma: win32 no cover
108 try:
109 lang_base.setup_cmd(prefix, ('rbenv', 'download', version))
110 except CalledProcessError: # pragma: no cover (usually find with download)
111 # Failed to download from mirror for some reason, build it instead
112 lang_base.setup_cmd(prefix, ('rbenv', 'install', version))
113
114
115def install_environment(

Callers 1

install_environmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected