UNPKG

liveperson-functions-cli

Version:
28 lines (27 loc) 982 B
import { DeployView } from '../../view/deploy.view'; import { DeploymentController } from './deployment.controller'; import { FileService } from '../../service/file.service'; interface IDeployControllerConfig { deployView?: DeployView; fileService?: FileService; } interface IDeployConfig { lambdaFunctions: string[]; inputFlags?: { yes?: boolean; ['no-watch']?: boolean; }; } export declare class DeployController extends DeploymentController { private readonly deployView; constructor({ deployView, fileService, }?: IDeployControllerConfig); /** * Gather informations about the passed functions depending on the flags and * starts the deploy process. * @param {IDeployConfig} { lambdaFunctions, inputFlags } * @returns {Promise<void>} - deploy view, which runs the deploy requests * @memberof DeployController */ deploy({ lambdaFunctions, inputFlags, }: IDeployConfig): Promise<void>; } export {};