Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
restructure commands & their names
Browse files Browse the repository at this point in the history
  • Loading branch information
svenluijten committed Jun 23, 2017
1 parent 1a581d9 commit cf78cbc
Show file tree
Hide file tree
Showing 27 changed files with 61 additions and 61 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,11 +547,11 @@ The output will be written to `STDOUT`, so you can save it to a file directly:
$ forge get:deploy-log {serverId} {siteId} > file.log
```

#### site:reset-deployment-status
Reset the status of the deployment.
#### reset:deploy-state
Reset the state of the deployment.

```bash
$ forge site:reset-deployment-status {serverId} {siteId}
$ forge reset:deploy-state {serverId} {siteId}
```

---
Expand Down
56 changes: 28 additions & 28 deletions bin/forge
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<?php

use Sven\ForgeCLI\Commands\{
Authorize, Credentials, Daemons, Databases, Deployment, Env,
FirewallRules, Jobs, NginxConfig, Recipes, Servers, Services,
SshKeys, Sites, Workers
Authorize, Credentials, Daemons, Databases, Deployment, DeployScript,
Env, FirewallRules, Jobs, NginxConfig, QuickDeploy, Recipes, Servers,
Services, SshKeys, Sites, Workers
};

if (file_exists(__DIR__.'/../../../autoload.php')) {
Expand All @@ -18,64 +18,64 @@ $app = new Symfony\Component\Console\Application('Forge CLI', '0.1.5');
$app->addCommands([
new Authorize,
new Credentials,
new Servers\Create,
new Servers\Make,
new Servers\All,
new Servers\Get,
new Servers\Show,
new Servers\Update,
new Servers\Delete,
new Servers\Reboot,
new Sites\Create,
new Sites\Make,
new Sites\All,
new Sites\Get,
new Sites\Show,
new Sites\Update,
new Sites\Delete,
new Sites\Deploy,
new Services\Reboot,
new Services\Stop,
new Services\Install,
new Services\Uninstall,
new Daemons\All,
new Daemons\Create,
new Daemons\Make,
new Daemons\Delete,
new Daemons\Get,
new Daemons\Show,
new Daemons\Reboot,
new Deployment\Deploy,
new Deployment\DisableQuickDeploy,
new Deployment\EnableQuickDeploy,
new Deployment\GetScript,
new Deployment\UpdateScript,
new Deployment\Log,
new Deployment\ResetStatus,
new QuickDeploy\Disable,
new QuickDeploy\Enable,
new Deployment\GetLog,
new Deployment\ResetState,
new DeployScript\Get,
new DeployScript\Update,
new FirewallRules\All,
new FirewallRules\Create,
new FirewallRules\Make,
new FirewallRules\Delete,
new FirewallRules\Get,
new FirewallRules\Show,
new Jobs\All,
new Jobs\Create,
new Jobs\Make,
new Jobs\Delete,
new Jobs\Get,
new Jobs\Show,
new Databases\All,
new Databases\Create,
new Databases\Make,
new Databases\Delete,
new Databases\Get,
new Databases\Show,
new Workers\All,
new Workers\Create,
new Workers\Make,
new Workers\Delete,
new Workers\Get,
new Workers\Show,
new Workers\Reboot,
new Recipes\All,
new Recipes\Create,
new Recipes\Make,
new Recipes\Delete,
new Recipes\Get,
new Recipes\Show,
new Recipes\Run,
new Recipes\Update,
new NginxConfig\Get,
new NginxConfig\Update,
new Env\Get,
new Env\Update,
new SshKeys\All,
new SshKeys\Create,
new SshKeys\Make,
new SshKeys\Delete,
new SshKeys\Get,
new SshKeys\Show,
]);

$app->run();
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Create extends BaseCommand
class Make extends BaseCommand
{
/**
* @var array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Get extends BaseCommand
class Show extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Create extends BaseCommand
class Make extends BaseCommand
{
/**
* @var array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Get extends BaseCommand
class Show extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Sven\ForgeCLI\Commands\Deployment;
namespace Sven\ForgeCLI\Commands\DeployScript;

use Sven\ForgeCLI\Commands\BaseCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class GetScript extends BaseCommand
class Get extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Sven\ForgeCLI\Commands\Deployment;
namespace Sven\ForgeCLI\Commands\DeployScript;

use Sven\ForgeCLI\Commands\BaseCommand;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class UpdateScript extends BaseCommand
class Update extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Log extends BaseCommand
class GetLog extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class ResetStatus extends BaseCommand
class ResetState extends BaseCommand
{
/**
* {@inheritdoc}
*/
public function configure()
{
$this->setName('site:reset-deployment-state')
$this->setName('reset:deploy-state')
->addArgument('server', InputArgument::REQUIRED, 'The id of the server the site is on.')
->addArgument('site', InputArgument::REQUIRED, 'The id of the site you want to reset the deployment state of.')
->setDescription('Reset the deployment state of the given site.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Create extends BaseCommand
class Make extends BaseCommand
{
/**
* @var array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Get extends BaseCommand
class Show extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Create extends BaseCommand
class Make extends BaseCommand
{
/**
* @var array
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Jobs/Get.php → src/Commands/Jobs/Show.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Get extends BaseCommand
class Show extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Sven\ForgeCLI\Commands\Deployment;
namespace Sven\ForgeCLI\Commands\QuickDeploy;

use Sven\ForgeCLI\Commands\BaseCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class DisableQuickDeploy extends BaseCommand
class Disable extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Sven\ForgeCLI\Commands\Deployment;
namespace Sven\ForgeCLI\Commands\QuickDeploy;

use Sven\ForgeCLI\Commands\BaseCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class EnableQuickDeploy extends BaseCommand
class Enable extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Create extends BaseCommand
class Make extends BaseCommand
{
/**
* @var array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Get extends BaseCommand
class Show extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Create extends BaseCommand
class Make extends BaseCommand
{
/**
* @var array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Get extends BaseCommand
class Show extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sven\ForgeCLI\Commands\Deployment;
namespace Sven\ForgeCLI\Commands\Sites;

use Sven\ForgeCLI\Commands\BaseCommand;
use Symfony\Component\Console\Input\InputArgument;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Create extends BaseCommand
class Make extends BaseCommand
{
/**
* @var array
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Sites/Get.php → src/Commands/Sites/Show.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Get extends BaseCommand
class Show extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Create extends BaseCommand
class Make extends BaseCommand
{
/**
* @var array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Get extends BaseCommand
class Show extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Create extends BaseCommand
class Make extends BaseCommand
{
/**
* @var array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Get extends BaseCommand
class Show extends BaseCommand
{
/**
* {@inheritdoc}
Expand Down

0 comments on commit cf78cbc

Please sign in to comment.