UNPKG

@atomist/sdm-core

Version:

Atomist Software Delivery Machine - Implementation

58 lines 1.54 kB
/// <reference types="node" /> import { Deployment } from "@atomist/sdm/lib/spi/deploy/Deployment"; import { ChildProcess } from "child_process"; import { LookupStrategy } from "./ManagedDeployments"; /** * @ModuleExport * @deprecated */ export interface StartupInfo { port: number; atomistTeam: string; contextRoot: string; } /** * @ModuleExport * @deprecated */ export interface SpawnedDeployment extends Deployment { childProcess: ChildProcess; } /** * @ModuleExport * @deprecated */ export interface LocalDeployerOptions { /** * url of the host */ baseUrl: string; /** * Initial port to use */ lowerPort?: number; /** * Command line arguments for the startup process to * expose our port and Atomist team if possible * Should be an array as valid input into node spawn * @param {StartupInfo} s * @return {string[]} */ commandLineArgumentsFor: (s: StartupInfo) => string[]; /** * Pattern to find in output to indicate that the server has come up successfully. * For example, matching something like "Started SpringRestSeedApplication in 3.931 seconds" */ successPatterns: RegExp[]; /** * Strategy for looking up already running services. * Local deployers will have their own default. */ lookupStrategy?: LookupStrategy; } /** * @ModuleExport * @deprecated */ export declare const DefaultLocalDeployerOptions: Partial<LocalDeployerOptions>; //# sourceMappingURL=LocalDeployerOptions.d.ts.map