-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from pagely/ds_check_job_status
draft branch for "ssl:le:jobstatus" command
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace Pagely\AtomicClient\Command\SSL; | ||
|
||
use Symfony\Component\Console\Input\InputArgument; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
class LetsencryptJobStatusCommand extends AbstractSSLCmd | ||
{ | ||
protected $commandName = 'ssl:le:jobstatus'; | ||
|
||
public function configure() | ||
{ | ||
parent::configure(); | ||
$this->setDescription('Check letsencrypt job status') | ||
->addArgument('id', InputArgument::REQUIRED, 'ID of the letsencrypt job (not jobId)') | ||
; | ||
$this->addOauthOptions(); | ||
} | ||
|
||
public function execute(InputInterface $input, OutputInterface $output) | ||
{ | ||
$r = $this->api->getLetsencryptStatus( | ||
$this->token->token, | ||
$input->getArgument('id') | ||
); | ||
$output->writeln($r->getBody()->getContents()); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters