Skip to content

Commit

Permalink
fix the optional verify-tls parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Apr 2, 2019
1 parent 98185b8 commit 13da2f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Command/VclDeployCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function configure(): void
->addOption('password', '', InputOption::VALUE_REQUIRED, 'VAC password [required]')
->addOption('vcl-name', '', InputOption::VALUE_REQUIRED, 'VCL name [required]')
->addOption('vcl-group', '', InputOption::VALUE_REQUIRED, 'VCL group [required]')
->addOption('verify-tls', '', InputOption::VALUE_REQUIRED, 'Specifies TLS verification. See http://docs.guzzlephp.org/en/stable/request-options.html#verify for possible options', true)
->addOption('verify-tls', '', InputOption::VALUE_REQUIRED, 'Specifies TLS verification, true|false|/path/to/certificate. See http://docs.guzzlephp.org/en/stable/request-options.html#verify for possible options', 'true')
;
}

Expand Down Expand Up @@ -97,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 0;
}

protected function getArgumentString(InputInterface $input, string $name): string
private function getArgumentString(InputInterface $input, string $name): string
{
$argument = $input->getArgument($name);
if (\is_array($argument)) {
Expand All @@ -107,7 +107,7 @@ protected function getArgumentString(InputInterface $input, string $name): strin
return (string) $argument;
}

protected function requireOption(InputInterface $input, string $name)
private function requireOption(InputInterface $input, string $name)
{
$option = $input->getOption($name);
if (!$option) {
Expand All @@ -117,7 +117,7 @@ protected function requireOption(InputInterface $input, string $name)
return $option;
}

protected function boolOrString(string $value)
private function boolOrString(string $value)
{
switch ($value) {
case 'true':
Expand All @@ -129,7 +129,7 @@ protected function boolOrString(string $value)
}
}

protected function readFile(string $fileName): ?string
private function readFile(string $fileName): ?string
{
$content = @file_get_contents($fileName);
if (false === $content) {
Expand Down

0 comments on commit 13da2f4

Please sign in to comment.