@forge/cli
12.16.1-next.6-experimental-13a01c212.17.0-next.7
out/command-line/controller/deploy-controller.js~
out/command-line/controller/deploy-controller.jsModified+4−1
Index: package/out/command-line/controller/deploy-controller.js
===================================================================
--- package/out/command-line/controller/deploy-controller.js
+++ package/out/command-line/controller/deploy-controller.js
@@ -48,9 +48,10 @@
appEnvironmentClient;
deployView;
nodePackageUploadDeployCommand;
createEnvironmentCommand;
- constructor(appConfigProvider, configFile, lintService, installationsService, roaService, migrationKeysService, customEntitiesService, appEnvironmentClient, deployView, nodePackageUploadDeployCommand, createEnvironmentCommand) {
+ devSpaceService;
+ constructor(appConfigProvider, configFile, lintService, installationsService, roaService, migrationKeysService, customEntitiesService, appEnvironmentClient, deployView, nodePackageUploadDeployCommand, createEnvironmentCommand, devSpaceService) {
this.appConfigProvider = appConfigProvider;
this.configFile = configFile;
this.lintService = lintService;
this.installationsService = installationsService;
@@ -60,8 +61,9 @@
this.appEnvironmentClient = appEnvironmentClient;
this.deployView = deployView;
this.nodePackageUploadDeployCommand = nodePackageUploadDeployCommand;
this.createEnvironmentCommand = createEnvironmentCommand;
+ this.devSpaceService = devSpaceService;
}
isMpacProductionApp(mpacAppKey, environment) {
return !!(mpacAppKey && environment === 'production');
}
@@ -179,8 +181,9 @@
const { id } = await this.appConfigProvider();
const appDetails = await this.getAppEnvironmentDetails(id, environment, nonInteractive);
appDetails.buildTag = buildTag;
this.deployView.displayStart(environment, appDetails.environmentType, buildTag);
+ await this.devSpaceService.displayEnforcementWarningsIfNeeded(this.deployView.getLogger(), id, 'deploy');
let hasConnectKeyChanged = false;
let hasConnectKeyDeleted = false;
if (verify && !buildTag) {
await this.verifyPreDeployment(environment);