Skip to content

Commit d948563

Browse files
authored
CEXT-2220: Add support for deployments on Commerce Cloud (#120)
* CEXT-2220: Add support for deployments on Commerce Cloud
1 parent 19254a9 commit d948563

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

config/schema.error.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,12 @@
441441
stage: general
442442
type: critical
443443
!php/const Magento\MagentoCloud\App\Error::GLOBAL_WEBHOOKS_MODULE_GENERATE_FAILED:
444-
title: 'Unable to generate a module for commerce webhooks'
444+
title: 'Failed to generate the AdobeCommerceWebhookPlugins module'
445445
suggestion: 'Check the `cloud.log` for more information.'
446446
stage: general
447447
type: critical
448448
!php/const Magento\MagentoCloud\App\Error::GLOBAL_WEBHOOKS_MODULE_ENABLEMENT_FAILED:
449-
title: 'Unable to enable a module for commerce webhooks'
449+
title: 'Failed to enable the AdobeCommerceWebhookPlugins module'
450450
suggestion: 'Check the `cloud.log` for more information.'
451451
stage: general
452452
type: critical

config/schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ variables:
718718
global:
719719
ENABLE_EVENTING: true
720720
ENABLE_WEBHOOKS:
721-
description: Enables commerce webhooks.
721+
description: Enables Commerce webhooks.
722722
type: boolean
723723
stages:
724724
- global

dist/error-codes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ Critical errors indicate a problem with the Commerce on cloud infrastructure pro
102102
| 246 | | Unable to read the `.schema.yaml` file | |
103103
| 247 | | Unable to generate a module for eventing | Check the `cloud.log` for more information. |
104104
| 248 | | Unable to enable a module for eventing | Check the `cloud.log` for more information. |
105-
| 249 | | Unable to generate a module for commerce webhooks | Check the `cloud.log` for more information. |
106-
| 250 | | Unable to enable a module for commerce webhooks | Check the `cloud.log` for more information. |
105+
| 249 | | Failed to generate the AdobeCommerceWebhookPlugins module | Check the `cloud.log` for more information. |
106+
| 250 | | Failed to enable the AdobeCommerceWebhookPlugins module | Check the `cloud.log` for more information. |
107107

108108
## Warning Errors
109109

src/Step/Build/EnableEventing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function execute()
7575
} catch (ShellException $e) {
7676
$this->logger->error(
7777
'Failed to generate the Magento_AdobeCommerceEvents module. ' .
78-
'Refer to the eventing documentation to determine if all required modules are have been installed. ' .
78+
'Refer to the eventing documentation to determine if all required modules have been installed. ' .
7979
'Error: ' . $e->getMessage()
8080
);
8181
throw new StepException($e->getMessage(), Error::GLOBAL_EVENTING_MODULE_GENERATE_FAILED, $e);

src/Step/Build/EnableWebhooks.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(
5555
}
5656

5757
/**
58-
* Generates and enables a module for commerce webhooks
58+
* Generates and enables a module for Commerce webhooks
5959
* if @see StageConfigInterface::VAR_ENABLE_WEBHOOKS set to true
6060
*
6161
* {@inheritDoc}
@@ -71,23 +71,23 @@ public function execute()
7171
}
7272

7373
try {
74-
$this->logger->notice('Generating module for commerce webhooks');
74+
$this->logger->notice('Generating module for Commerce webhooks');
7575
$this->magentoShell->execute('webhooks:generate:module');
7676
} catch (ShellException $e) {
7777
$this->logger->error(
7878
'Failed to generate the AdobeCommerceWebhookPlugins module. ' .
79-
'Refer to the commerce webhooks documentation to determine if all ' .
80-
'required modules are have been installed. ' .
79+
'Refer to the Commerce webhooks documentation to determine if all ' .
80+
'required modules have been installed. ' .
8181
'Error: ' . $e->getMessage()
8282
);
8383
throw new StepException($e->getMessage(), Error::GLOBAL_WEBHOOKS_MODULE_GENERATE_FAILED, $e);
8484
}
8585

8686
try {
87-
$this->logger->notice('Enabling module for commerce webhooks');
87+
$this->logger->notice('Enabling module for Commerce webhooks');
8888
$this->magentoShell->execute('module:enable Magento_AdobeCommerceWebhookPlugins');
8989
} catch (ShellException $e) {
90-
$this->logger->error('Failed to enable module for commerce webhooks: ' . $e->getMessage());
90+
$this->logger->error('Failed to enable module for Commerce webhooks: ' . $e->getMessage());
9191
throw new StepException($e->getMessage(), Error::GLOBAL_WEBHOOKS_MODULE_ENABLEMENT_FAILED, $e);
9292
}
9393
}

0 commit comments

Comments
 (0)