Skip to content

Commit

Permalink
renaming to --all-storages
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Nov 10, 2021
1 parent 4fd3bfb commit 1a781c3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/Command/PointArchive.php
Expand Up @@ -95,7 +95,7 @@ protected function configure() {
->addArgument('pointId', InputArgument::REQUIRED, 'id of the restoring point to comment')
->addOption('remote', '', InputOption::VALUE_REQUIRED, 'address of the remote instance')
->addOption('external', '', InputOption::VALUE_REQUIRED, 'id of the external folder')
->addOption('all-storage', '', InputOption::VALUE_NONE, 'duplicate action on all storages');
->addOption('all-storages', '', InputOption::VALUE_NONE, 'duplicate action on all storages');
}


Expand Down
2 changes: 1 addition & 1 deletion lib/Command/PointComment.php
Expand Up @@ -96,7 +96,7 @@ protected function configure() {
->addArgument('comment', InputArgument::REQUIRED, 'comment')
->addOption('remote', '', InputOption::VALUE_REQUIRED, 'address of the remote instance')
->addOption('external', '', InputOption::VALUE_REQUIRED, 'id of the external folder')
->addOption('all-storage', '', InputOption::VALUE_NONE, 'duplicate action on all storages');
->addOption('all-storages', '', InputOption::VALUE_NONE, 'duplicate action on all storages');
}


Expand Down
4 changes: 2 additions & 2 deletions lib/Command/PointDelete.php
Expand Up @@ -98,7 +98,7 @@ protected function configure() {
->setDescription('Locally delete a restoring point')
->addArgument('pointId', InputArgument::REQUIRED, 'id of the restoring point to delete')
->addOption(
'all-storage', '', InputOption::VALUE_NONE, 'remove restoring point from all storage'
'all-storages', '', InputOption::VALUE_NONE, 'remove restoring point from all storage'
)
->addOption(
'remote', '', InputOption::VALUE_REQUIRED,
Expand Down Expand Up @@ -130,7 +130,7 @@ protected function configure() {
protected function execute(InputInterface $input, OutputInterface $output): int {
$pointId = $input->getArgument('pointId');

if ($input->getOption('all-storage')) {
if ($input->getOption('all-storages')) {
$this->remoteService->deletePoint($pointId);
$this->externalFolderService->deletePoint($pointId);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/PointUnarchive.php
Expand Up @@ -95,7 +95,7 @@ protected function configure() {
->addArgument('pointId', InputArgument::REQUIRED, 'id of the restoring point to comment')
->addOption('remote', '', InputOption::VALUE_REQUIRED, 'address of the remote instance')
->addOption('external', '', InputOption::VALUE_REQUIRED, 'id of the external folder')
->addOption('all-storage', '', InputOption::VALUE_NONE, 'duplicate action on all storages');
->addOption('all-storages', '', InputOption::VALUE_NONE, 'duplicate action on all storages');
}


Expand Down
2 changes: 1 addition & 1 deletion lib/Service/OccService.php
Expand Up @@ -142,7 +142,7 @@ public function getRestoringPointBasedOnParams(InputInterface $input): Restoring
* @throws NotFoundException
*/
public function updatePointBasedOnParams(RestoringPoint $point, InputInterface $input): void {
if ($input->getOption('all-storage')) {
if ($input->getOption('all-storages')) {
$this->pointService->updateSubInfos($point);
$this->metadataService->globalUpdate($point);

Expand Down

0 comments on commit 1a781c3

Please sign in to comment.