Skip to content

Commit

Permalink
MAGECLOUD-4392: Clean-up ECE-Tools (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftedreality authored Oct 9, 2019
1 parent d7c47a7 commit 910c586
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 266 deletions.
2 changes: 1 addition & 1 deletion autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
}
}

throw new \RuntimeException('Required file \'autoload.php\' was not found.');
throw new RuntimeException('Required file \'autoload.php\' was not found.');
7 changes: 5 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@

require_once __DIR__ . '/autoload.php';

$handler = new \Magento\MagentoCloud\App\ErrorHandler();
use Magento\MagentoCloud\App\Container;
use Magento\MagentoCloud\App\ErrorHandler;

$handler = new ErrorHandler();
set_error_handler([$handler, 'handle']);

return new \Magento\MagentoCloud\App\Container(ECE_BP, BP);
return new Container(ECE_BP, BP);
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@
"magento/magento-cloud-configuration": "*"
},
"bin": [
"bin/ece-tools",
"m2-ece-build",
"m2-ece-deploy",
"m2-ece-scd-dump"
"bin/ece-tools"
],
"autoload": {
"psr-4": {
Expand Down
4 changes: 4 additions & 0 deletions config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Configuring .XSD schema integration into PhpStorm

1. Open `Config -> Languages & Frameworks -> Schemas and DTDs`
2. Add new item pointing `urn:magento:ece-tools:config/scenario.xsd` to the correct file in ECE-Tools codebase
11 changes: 0 additions & 11 deletions m2-ece-build

This file was deleted.

12 changes: 0 additions & 12 deletions m2-ece-deploy

This file was deleted.

11 changes: 0 additions & 11 deletions m2-ece-scd-dump

This file was deleted.

2 changes: 1 addition & 1 deletion scenario/build/generate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
<scenario xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../config/scenario.xsd" >
<scenario xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:ece-tools:config/scenario.xsd">
<step name="pre-build" type="Magento\MagentoCloud\Step\Build\PreBuild"/>
<step name="set-production-mode" type="Magento\MagentoCloud\Step\SetProductionMode"/>
<step name="validate-configuration" type="Magento\MagentoCloud\Step\ValidateConfiguration">
Expand Down
2 changes: 1 addition & 1 deletion scenario/build/transfer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
<scenario xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../config/scenario.xsd">
<scenario xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:ece-tools:config/scenario.xsd">
<step name="compress-static-content" type="Magento\MagentoCloud\Step\Build\CompressStaticContent"/>
<step name="clear-init-directory" type="Magento\MagentoCloud\Step\Build\ClearInitDirectory"/>
<step name="backup-data" type="Magento\MagentoCloud\Step\Build\BackupData">
Expand Down
2 changes: 1 addition & 1 deletion scenario/deploy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
<scenario xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../config/scenario.xsd">
<scenario xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:ece-tools:config/scenario.xsd">
<step name="remove-deploy-failed-flag" type="Magento\MagentoCloud\Step\Deploy\RemoveDeployFailedFlag"/>
<step name="pre-deploy" type="Magento\MagentoCloud\Step\Deploy\PreDeploy">
<arguments>
Expand Down
2 changes: 1 addition & 1 deletion scenario/post-deploy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
<scenario xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../config/scenario.xsd">
<scenario xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:ece-tools:config/scenario.xsd">
<step name="is-deploy-failed" type="Magento\MagentoCloud\Step\PostDeploy\DeployFailed"/>
<step name="validate-config" type="Magento\MagentoCloud\Step\ValidateConfiguration">
<arguments>
Expand Down
2 changes: 0 additions & 2 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ protected function getDefaultCommands()
$this->container->create(Command\ModuleRefresh::class),
$this->container->create(Command\Wizard\IdealState::class),
$this->container->create(Command\Wizard\MasterSlave::class),
$this->container->create(Command\Docker\Build::class),
$this->container->create(Command\Docker\GenerateDist::class),
$this->container->create(Command\CronKill::class),
$this->container->create(Command\ConfigShow::class),
$this->container->create(Command\RunCommand::class),
Expand Down
125 changes: 0 additions & 125 deletions src/Command/Docker/Build.php

This file was deleted.

63 changes: 0 additions & 63 deletions src/Command/Docker/GenerateDist.php

This file was deleted.

6 changes: 6 additions & 0 deletions src/Filesystem/FileList.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

namespace Magento\MagentoCloud\Filesystem;

use Magento\MagentoCloud\Package\UndefinedPackageException;

/**
* Resolver of file configurations.
*/
Expand All @@ -30,6 +32,7 @@ public function __construct(DirectoryList $directoryList, SystemList $systemList

/**
* @return string
* @throws UndefinedPackageException
*/
public function getCloudLog(): string
{
Expand All @@ -38,6 +41,7 @@ public function getCloudLog(): string

/**
* @return string
* @throws UndefinedPackageException
*/
public function getTtfbLog(): string
{
Expand All @@ -46,6 +50,7 @@ public function getTtfbLog(): string

/**
* @return string
* @throws UndefinedPackageException
*/
public function getInitCloudLog(): string
{
Expand All @@ -54,6 +59,7 @@ public function getInitCloudLog(): string

/**
* @return string
* @throws UndefinedPackageException
*/
public function getInstallUpgradeLog(): string
{
Expand Down
2 changes: 0 additions & 2 deletions src/Test/Unit/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ class ApplicationTest extends TestCase
Command\ModuleRefresh::NAME => Command\ModuleRefresh::class,
Command\Wizard\IdealState::NAME => Command\Wizard\IdealState::class,
Command\Wizard\MasterSlave::NAME => Command\Wizard\MasterSlave::class,
Command\Docker\Build::NAME => Command\Docker\Build::class,
Command\Docker\GenerateDist::NAME => Command\Docker\GenerateDist::class,
Command\CronKill::NAME => Command\CronKill::class,
Command\ConfigShow::NAME => Command\ConfigShow::class,
Command\RunCommand::NAME => Command\RunCommand::class,
Expand Down
Loading

0 comments on commit 910c586

Please sign in to comment.