zowe-cli-cics-deploy-plugin
Version:
IBM CICS Bundle generation and deployment for Zowe CLI
60 lines (59 loc) • 1.72 kB
TypeScript
import { Bundle } from "./Bundle";
import { IHandlerParameters } from "@zowe/imperative";
/**
* Utility class to bundle enable the working directory. If a package.json file is
* found then the contents are processed and a basic NODEJSAPP resource is added
* to the Bundle.
*
* @export
* @class AutoBundler
*/
export declare class AutoBundler {
private MAX_NODEJSAPP_LEN;
private bundle;
private fs;
private path;
private packageJsonFile;
private bundleidOverride;
private bundleMajorVerOverride;
private bundleMinorVerOverride;
private bundleMicroVerOverride;
private nodejsappOverride;
private startscriptOverride;
private portOverride;
private bundleDirectory;
private overwrite;
private merge;
/**
* Constructor to perform the automatic bundle enablement.
* @param {string} directory - The bundle directory.
* @param {IHandlerParameters} params - The Imperative handler parameters
* @static
* @throws ImperativeError
* @memberof AutoBundler
*/
constructor(directory: string, params: IHandlerParameters);
/**
* Returns the generated Bundle instance.
* @throws ImperativeError
* @returns {Bundle}
* @memberof AutoBundler
*/
getBundle(): Bundle;
/**
* Save the generated Bundle
*
* @throws ImperativeError
* @memberof AutoBundler
*/
save(): void;
private autoDetectWorkdirContent;
private processPackageJson;
private discoverArguments;
private validateBundleId;
private validateBundleVer;
private validateNodejsapp;
private validateStartscript;
private validatePort;
private validateMergeAndOverwrite;
}