Skip to content

Commit 890f79b

Browse files
committed
#12 : Add deploy, destroy and rsync commands
1 parent 3174ade commit 890f79b

File tree

12 files changed

+585
-86
lines changed

12 files changed

+585
-86
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This project aims at building your Docker stack for [OroCommerce](https://oroinc
1919
Requirements:
2020
---
2121
- PHP 7.4
22+
- rsync (for environment commands)
2223

2324
Installation
2425
---

Diff for: bin/kloud

+15
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,21 @@ $app->addCommands([
7979
(new Command\Environment\Variable\UnsetCommand(
8080
Command\Environment\Variable\UnsetCommand::$defaultName,
8181
)),
82+
83+
(new Command\Environment\DeployCommand(
84+
Command\Environment\DeployCommand::$defaultName,
85+
$app,
86+
)),
87+
88+
(new Command\Environment\DestroyCommand(
89+
Command\Environment\DestroyCommand::$defaultName,
90+
$app,
91+
)),
92+
93+
(new Command\Environment\RsyncCommand(
94+
Command\Environment\RsyncCommand::$defaultName,
95+
$app,
96+
)),
8297
]);
8398

8499
$app->run(new ArgvInput($argv), new ConsoleOutput());

Diff for: composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"symfony/property-access": "^5.0",
1616
"symfony/serializer": "^5.0",
1717
"symfony/yaml": "^5.0",
18-
"splitbrain/php-archive": "^1.1"
18+
"splitbrain/php-archive": "^1.1",
19+
"deployer/deployer": "^6.8"
1920
},
2021
"require-dev": {
2122
"friends-of-phpspec/phpspec-code-coverage": "^4.0",

Diff for: composer.lock

+162-79
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/Domain/Environment/DTO/Context.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Kiboko\Cloud\Domain\Environment\DTO;
66

7-
use Kiboko\Cloud\Domain\Environment\VariableNotFoundException;
7+
use Kiboko\Cloud\Domain\Environment\Exception\VariableNotFoundException;
88
use Symfony\Component\Serializer\Normalizer\DenormalizableInterface;
99
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
1010
use Symfony\Component\Serializer\Normalizer\NormalizableInterface;
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22

3-
namespace Kiboko\Cloud\Domain\Environment;
3+
namespace Kiboko\Cloud\Domain\Environment\Exception;
44

55
class VariableNotFoundException extends \RuntimeException
66
{
7-
87
}

0 commit comments

Comments
 (0)