diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2016-02-05 21:18:02 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2016-02-05 21:51:58 +0300 |
commit | b91bc80ea41c4827119acb57c10406826e6cd64c (patch) | |
tree | 8b06522e9f0dbd24a230f013b61deb50934c23bc /core/command/integrity | |
parent | fef7fc12480207f13732f68f097d28dfbd84b2d5 (diff) | |
download | nextcloud-server-b91bc80ea41c4827119acb57c10406826e6cd64c.tar.gz nextcloud-server-b91bc80ea41c4827119acb57c10406826e6cd64c.zip |
Optional path parameter
Diffstat (limited to 'core/command/integrity')
-rw-r--r-- | core/command/integrity/checkapp.php | 9 | ||||
-rw-r--r-- | core/command/integrity/checkcore.php | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/core/command/integrity/checkapp.php b/core/command/integrity/checkapp.php index 26fa9dd655a..c61f8716dee 100644 --- a/core/command/integrity/checkapp.php +++ b/core/command/integrity/checkapp.php @@ -33,10 +33,11 @@ use OC\IntegrityCheck\Checker; use OC\Core\Command\Base; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputArgument; +use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; /** - * Class SignApp + * Class CheckApp * * @package OC\Core\Command\Integrity */ @@ -54,7 +55,8 @@ class CheckApp extends Base { $this ->setName('integrity:check-app') ->setDescription('Check an app integrity using a signature.') - ->addArgument('appid', null, InputArgument::REQUIRED, 'Application to check'); + ->addArgument('appid', null, InputArgument::REQUIRED, 'Application to check') + ->addOption('path', null, InputOption::VALUE_OPTIONAL, 'Path to application. If none is given it will be guessed.'); } /** @@ -62,7 +64,8 @@ class CheckApp extends Base { */ protected function execute(InputInterface $input, OutputInterface $output) { $appid = $input->getArgument('appid'); - $result = $this->checker->verifyAppSignature($appid); + $path = strval($input->getOption('path')); + $result = $this->checker->verifyAppSignature($appid, $path); $this->writeArrayInOutputFormat($input, $output, $result); } diff --git a/core/command/integrity/checkcore.php b/core/command/integrity/checkcore.php index 366076441ee..a1602b8c2ec 100644 --- a/core/command/integrity/checkcore.php +++ b/core/command/integrity/checkcore.php @@ -36,7 +36,7 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** - * Class SignApp + * Class CheckCore * * @package OC\Core\Command\Integrity */ |