[ruby] Use new Lambda() (#7551)

`createLambda()` is deprecated.
This commit is contained in:
Nathan Rajlich
2022-03-11 21:19:32 -08:00
committed by GitHub
parent 7eba282af5
commit 501be936c0

View File

@@ -10,10 +10,10 @@ import {
} from 'fs-extra'; } from 'fs-extra';
import { import {
BuildOptions, BuildOptions,
Lambda,
download, download,
getWriteableDirectory, getWriteableDirectory,
glob, glob,
createLambda,
debug, debug,
walkParentDirs, walkParentDirs,
} from '@vercel/build-utils'; } from '@vercel/build-utils';
@@ -215,7 +215,7 @@ export async function build({
} }
} }
const lambda = await createLambda({ const lambda = new Lambda({
files: outputFiles, files: outputFiles,
handler: `${handlerRbFilename}.vc__handler`, handler: `${handlerRbFilename}.vc__handler`,
runtime, runtime,