microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.6.6

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/extension/appcenter/codepush/release-strategy/legacyCodePushRelease.ts

21lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4import LegacyCodePushServiceClient from "./legacyCodePushServiceClient";
5import { models } from "../../api/index";
6import { ICodePushReleaseParams } from "../../command/commandParams";
7import { PackageInfo } from "./legacyCodePushServiceClient";
8import * as Q from "q";
9
10export function legacyCodePushRelease(params: ICodePushReleaseParams, token: string, serverUrl: string): Q.Promise<models.CodePushRelease> {
11 const releaseData: PackageInfo = {
12 description: params.description,
13 isDisabled: params.isDisabled,
14 isMandatory: params.isMandatory,
15 rollout: params.rollout,
16 appVersion: params.appVersion,
17 };
18
19 return new LegacyCodePushServiceClient(token, params.app, serverUrl)
20 .release(params.deploymentName, params.updatedContentZipPath, releaseData);
21}