Skip to content

Commit fa11090

Browse files
Merge pull request #147 from magento/MAGECLOUD-5215
MAGECLOUD-5215: Forward-port delivered changes
2 parents ad2ef1e + 2a6af9a commit fa11090

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Command/BuildCompose.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class BuildCompose extends Command
5050
private const OPTION_NODE = 'node';
5151
private const OPTION_MODE = 'mode';
5252
private const OPTION_SYNC_ENGINE = 'sync-engine';
53-
private const OPTION_NO_CRON = 'no-cron';
53+
private const OPTION_WITH_CRON = 'with-cron';
5454
private const OPTION_NO_VARNISH = 'no-varnish';
5555
private const OPTION_WITH_SELENIUM = 'with-selenium';
5656

@@ -69,7 +69,7 @@ class BuildCompose extends Command
6969
self::OPTION_RABBIT_MQ => ServiceInterface::NAME_RABBITMQ,
7070
self::OPTION_EXPOSE_DB_PORT => ProductionBuilder::KEY_EXPOSE_DB_PORT,
7171
self::OPTION_SELENIUM_VERSION => ServiceFactory::SERVICE_SELENIUM_VERSION,
72-
self::OPTION_SELENIUM_IMAGE => ServiceFactory::SERVICE_SELENIUM_IMAGE
72+
self::OPTION_SELENIUM_IMAGE => ServiceFactory::SERVICE_SELENIUM_IMAGE,
7373
];
7474

7575
/**
@@ -221,10 +221,10 @@ protected function configure(): void
221221
)
222222
)
223223
->addOption(
224-
self::OPTION_NO_CRON,
224+
self::OPTION_WITH_CRON,
225225
null,
226226
InputOption::VALUE_NONE,
227-
'Remove cron container'
227+
'Add cron container'
228228
)
229229
->addOption(
230230
self::OPTION_NO_VARNISH,
@@ -278,7 +278,7 @@ public function execute(InputInterface $input, OutputInterface $output)
278278

279279
$config->set([
280280
DeveloperBuilder::KEY_SYNC_ENGINE => $syncEngine,
281-
ProductionBuilder::KEY_NO_CRON => $input->getOption(self::OPTION_NO_CRON),
281+
ProductionBuilder::KEY_WITH_CRON=> $input->getOption(self::OPTION_WITH_CRON),
282282
ProductionBuilder::KEY_NO_VARNISH => $input->getOption(self::OPTION_NO_VARNISH),
283283
ProductionBuilder::KEY_WITH_SELENIUM => $input->getOption(self::OPTION_WITH_SELENIUM)
284284
]);

src/Compose/BuilderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ interface BuilderInterface
1919
public const DEFAULT_VARNISH_VERSION = 'latest';
2020
public const DEFAULT_TLS_VERSION = 'latest';
2121

22-
public const KEY_NO_CRON = 'no-cron';
2322
public const KEY_NO_VARNISH = 'no-varnish';
2423
public const KEY_EXPOSE_DB_PORT = 'expose-db-port';
2524
public const KEY_NO_TMP_MOUNTS = 'no-tmp-mounts';
2625
public const KEY_WITH_SELENIUM = 'with-selenium';
2726
public const KEY_SYNC_ENGINE = 'sync-engine';
27+
public const KEY_WITH_CRON = 'with-cron';
2828

2929
public const SERVICE_GENERIC = 'generic';
3030
public const SERVICE_DB = 'db';

src/Compose/ProductionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ public function build(Repository $config): Manager
386386
self::$cliDepends
387387
);
388388

389-
if (!$config->get(self::KEY_NO_CRON, false)) {
389+
if ($config->get(self::KEY_WITH_CRON, false)) {
390390
$manager->addService(
391391
self::SERVICE_CRON,
392392
array_merge(

0 commit comments

Comments
 (0)