forked from redhat-developer/vscode-openshift-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparallelCompositeCommand.ts
More file actions
27 lines (23 loc) · 988 Bytes
/
Copy pathparallelCompositeCommand.ts
File metadata and controls
27 lines (23 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*-----------------------------------------------------------------------------------------------
* Copyright (c) Red Hat, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*-----------------------------------------------------------------------------------------------*/
import { Command } from '../odo/componentTypeDescription';
import { ComponentWorkspaceFolder } from '../odo/workspace';
import { DevfileCommandRunner } from './devfileCommandRunner';
export class ParallelCompositeCommand {
public static async execute(
componentFolder: ComponentWorkspaceFolder,
command: Command,
): Promise<void> {
await Promise.all(
command.composite.commands.map(
childId =>
DevfileCommandRunner.execute(
componentFolder,
childId,
),
),
);
}
}