From 7493e3cfae2a83f1093f2af5828ba1520f599afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Monta=C3=B1ez?= Date: Wed, 11 Jan 2017 21:57:29 -0300 Subject: [PATCH] [Nostromo] Regroup Strategies --- src/Deploy/Strategy/{ => Releases}/ReleasesStrategy.php | 3 ++- src/Deploy/Strategy/{ => Rsync}/RsyncStrategy.php | 3 ++- src/Runtime/Runtime.php | 4 ++-- tests/Deploy/StrategyTest.php | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) rename src/Deploy/Strategy/{ => Releases}/ReleasesStrategy.php (97%) rename src/Deploy/Strategy/{ => Rsync}/RsyncStrategy.php (96%) diff --git a/src/Deploy/Strategy/ReleasesStrategy.php b/src/Deploy/Strategy/Releases/ReleasesStrategy.php similarity index 97% rename from src/Deploy/Strategy/ReleasesStrategy.php rename to src/Deploy/Strategy/Releases/ReleasesStrategy.php index 0ae0bdf..6897b8b 100644 --- a/src/Deploy/Strategy/ReleasesStrategy.php +++ b/src/Deploy/Strategy/Releases/ReleasesStrategy.php @@ -8,10 +8,11 @@ * file that was distributed with this source code. */ -namespace Mage\Deploy\Strategy; +namespace Mage\Deploy\Strategy\Releases; use Mage\Runtime\Exception\RuntimeException; use Mage\Runtime\Runtime; +use Mage\Deploy\Strategy\StrategyInterface; /** * Strategy for Deployment with Releases, using TarGz and SCP diff --git a/src/Deploy/Strategy/RsyncStrategy.php b/src/Deploy/Strategy/Rsync/RsyncStrategy.php similarity index 96% rename from src/Deploy/Strategy/RsyncStrategy.php rename to src/Deploy/Strategy/Rsync/RsyncStrategy.php index 499a6f6..f6b5376 100644 --- a/src/Deploy/Strategy/RsyncStrategy.php +++ b/src/Deploy/Strategy/Rsync/RsyncStrategy.php @@ -8,10 +8,11 @@ * file that was distributed with this source code. */ -namespace Mage\Deploy\Strategy; +namespace Mage\Deploy\Strategy\Rsync; use Mage\Runtime\Exception\RuntimeException; use Mage\Runtime\Runtime; +use Mage\Deploy\Strategy\StrategyInterface; /** * Strategy for Deployment with Rsync diff --git a/src/Runtime/Runtime.php b/src/Runtime/Runtime.php index 2c96275..a3001c0 100644 --- a/src/Runtime/Runtime.php +++ b/src/Runtime/Runtime.php @@ -10,8 +10,8 @@ namespace Mage\Runtime; -use Mage\Deploy\Strategy\ReleasesStrategy; -use Mage\Deploy\Strategy\RsyncStrategy; +use Mage\Deploy\Strategy\Releases\ReleasesStrategy; +use Mage\Deploy\Strategy\Rsync\RsyncStrategy; use Mage\Deploy\Strategy\StrategyInterface; use Psr\Log\LoggerInterface; use Psr\Log\LogLevel; diff --git a/tests/Deploy/StrategyTest.php b/tests/Deploy/StrategyTest.php index fd3997d..62dd6a6 100644 --- a/tests/Deploy/StrategyTest.php +++ b/tests/Deploy/StrategyTest.php @@ -10,8 +10,8 @@ namespace Mage\Tests\Deploy; -use Mage\Deploy\Strategy\ReleasesStrategy; -use Mage\Deploy\Strategy\RsyncStrategy; +use Mage\Deploy\Strategy\Releases\ReleasesStrategy; +use Mage\Deploy\Strategy\Rsync\RsyncStrategy; use Mage\Runtime\Exception\RuntimeException; use Mage\Runtime\Runtime; use Exception;