MCPcopy Create free account
hub / github.com/vercel/vercel / getLatestRubyVersion

Function getLatestRubyVersion

packages/ruby/src/install-ruby.ts:40–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38];
39
40function getLatestRubyVersion(): RubyVersion {
41 const selection = allOptions.find(isInstalled);
42 if (!selection) {
43 throw new NowBuildError({
44 code: 'RUBY_INVALID_VERSION',
45 link: 'http://vercel.link/ruby-version',
46 message: `Unable to find any supported Ruby versions.`,
47 });
48 }
49 return selection;
50}
51
52function resolveSystemRuby(): {
53 rubyPath: string;

Callers 1

getRubyPathFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected