Skip to content

Commit

Permalink
#12 : Add deploy, destroy and rsync commands
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas43000 committed Oct 6, 2020
1 parent 3174ade commit 890f79b
Show file tree
Hide file tree
Showing 12 changed files with 585 additions and 86 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This project aims at building your Docker stack for [OroCommerce](https://oroinc
Requirements:
---
- PHP 7.4
- rsync (for environment commands)

Installation
---
Expand Down
15 changes: 15 additions & 0 deletions bin/kloud
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@ $app->addCommands([
(new Command\Environment\Variable\UnsetCommand(
Command\Environment\Variable\UnsetCommand::$defaultName,
)),

(new Command\Environment\DeployCommand(
Command\Environment\DeployCommand::$defaultName,
$app,
)),

(new Command\Environment\DestroyCommand(
Command\Environment\DestroyCommand::$defaultName,
$app,
)),

(new Command\Environment\RsyncCommand(
Command\Environment\RsyncCommand::$defaultName,
$app,
)),
]);

$app->run(new ArgvInput($argv), new ConsoleOutput());
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"symfony/property-access": "^5.0",
"symfony/serializer": "^5.0",
"symfony/yaml": "^5.0",
"splitbrain/php-archive": "^1.1"
"splitbrain/php-archive": "^1.1",
"deployer/deployer": "^6.8"
},
"require-dev": {
"friends-of-phpspec/phpspec-code-coverage": "^4.0",
Expand Down
241 changes: 162 additions & 79 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Domain/Environment/DTO/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Kiboko\Cloud\Domain\Environment\DTO;

use Kiboko\Cloud\Domain\Environment\VariableNotFoundException;
use Kiboko\Cloud\Domain\Environment\Exception\VariableNotFoundException;
use Symfony\Component\Serializer\Normalizer\DenormalizableInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use Symfony\Component\Serializer\Normalizer\NormalizableInterface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php

namespace Kiboko\Cloud\Domain\Environment;
namespace Kiboko\Cloud\Domain\Environment\Exception;

class VariableNotFoundException extends \RuntimeException
{

}
Loading

0 comments on commit 890f79b

Please sign in to comment.