Skip to content

Commit 98ad749

Browse files
committed
Fix ensureKnownHosts
1 parent 262480a commit 98ad749

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Method/ArtifactsBaseMethod.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Phabalicious\Exception\TaskNotFoundInMethodException;
1717
use Phabalicious\ShellProvider\ShellProviderInterface;
1818
use Phabalicious\Utilities\AppDefaultStages;
19+
use Phabalicious\Utilities\EnsureKnownHosts;
1920
use Phabalicious\Validation\ValidationErrorBagInterface;
2021
use Phabalicious\Validation\ValidationService;
2122
use Psr\Log\LoggerInterface;
@@ -146,7 +147,7 @@ protected function buildArtifact(
146147
$context->set('outerShell', $shell);
147148
$context->set('installDir', $install_dir);
148149

149-
$this->ensureKnownHosts(
150+
EnsureKnownHosts::ensureKnownHosts(
150151
$context->getConfigurationService(),
151152
$this->getKnownHosts($host_config, $context),
152153
$shell

src/Method/GitMethod.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Phabalicious\Configuration\HostConfig;
77
use Phabalicious\Exception\EarlyTaskExitException;
88
use Phabalicious\ShellProvider\ShellProviderInterface;
9+
use Phabalicious\Utilities\EnsureKnownHosts;
910
use Phabalicious\Utilities\Utilities;
1011
use Phabalicious\Validation\ValidationErrorBagInterface;
1112
use Phabalicious\Validation\ValidationService;
@@ -184,7 +185,7 @@ public function appCreate(HostConfig $host_config, TaskContextInterface $context
184185
$cwd = $shell->getWorkingDir();
185186
$shell->cd(dirname($install_dir));
186187

187-
$this->ensureKnownHosts(
188+
EnsureKnownHosts::ensureKnownHosts(
188189
$context->getConfigurationService(),
189190
$this->getKnownHosts($host_config, $context),
190191
$shell
@@ -211,7 +212,7 @@ public function preflightTask(string $task, HostConfig $config, TaskContextInter
211212
{
212213
parent::preflightTask($task, $config, $context); // TODO: Change the autogenerated stub
213214
if (in_array($task, ['deploy'])) {
214-
$this->ensureKnownHosts(
215+
EnsureKnownHosts::ensureKnownHosts(
215216
$context->getConfigurationService(),
216217
$this->getKnownHosts($config, $context),
217218
$config->shell()

0 commit comments

Comments
 (0)