diff options
Diffstat (limited to 'src/GitHubPagesDeploy/Console/Command/DeployCommand.php')
-rw-r--r-- | src/GitHubPagesDeploy/Console/Command/DeployCommand.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/GitHubPagesDeploy/Console/Command/DeployCommand.php b/src/GitHubPagesDeploy/Console/Command/DeployCommand.php deleted file mode 100644 index 70c7d8a..0000000 --- a/src/GitHubPagesDeploy/Console/Command/DeployCommand.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -namespace GitHubPagesDeploy\Console\Command; - -use GitHubPagesDeploy\GitHubPagesDeploy; -use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Input\InputArgument; -use Symfony\Component\Console\Input\InputOption; -use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Output\OutputInterface; - -class DeployCommand extends Command -{ - protected function configure() - { - $this - ->setName('deploy') - ->setDescription('Deploys the list of GitHub Pages repositories.') - ; - } - - protected function execute(InputInterface $input, OutputInterface $output) - { - $deploy = GitHubPagesDeploy::fromFile(); - $repositories = $deploy->getRepositories(); - if (empty($repositories)) { - $output->writeln('<info>gh-pages-deploy.json is empty.</info>'); - } - else { - $deploy->update(); - } - } -} |