mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
Move x-pack plugins/server/common to x-pack/legacy
This commit is contained in:
parent
f5339712b7
commit
dbb0534c21
9082 changed files with 0 additions and 0 deletions
20
x-pack/legacy/plugins/code/tasks/nodegit_info.ts
Normal file
20
x-pack/legacy/plugins/code/tasks/nodegit_info.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
/* eslint-disable @typescript-eslint/camelcase */
|
||||
|
||||
// @ts-ignore
|
||||
import binary_info from '@elastic/nodegit/dist/utils/binary_info';
|
||||
|
||||
export function binaryInfo(platform: string, arch: string) {
|
||||
const info = binary_info(platform, arch);
|
||||
const downloadUrl = info.hosted_tarball;
|
||||
const packageName = info.package_name;
|
||||
return {
|
||||
downloadUrl,
|
||||
packageName,
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue