UNPKG

1.02 kBPlain TextView Raw
1/*
2 * Copyright © 2019 Atomist, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17import {
18 ExtensionPack,
19 metadata,
20} from "@atomist/sdm";
21import { executeTask } from "./executeTask";
22
23/**
24 * Extension pack installing job execution support into
25 * the SDM
26 *
27 * This extension pack is installed by default.
28 */
29export function jobSupport(): ExtensionPack {
30 return {
31 ...metadata("job"),
32 configure: sdm => {
33 sdm.addEvent(executeTask(sdm));
34 },
35 };
36}