Skip to content

Commit

Permalink
thusfar
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmagicii committed Oct 15, 2024
1 parent e7494fd commit 68ee336
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion bin/codeserver.atl
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,29 @@ extends Atlantis\TerminalApp {
'disable-workspace-trust' => 'true'
]);

if($CertFile !== static::DefaultCertFile) {
$this->PrintLn($this->FormatHeaderPoint(
'Enabling SSL...',
$this->Theme::Muted
));
$this->PrintLn($this->FormatHeaderPoint(
sprintf('Cert: %s', Common\Filesystem\Util::Basename($CertFile, 2)),
$this->Theme::Muted
));
$this->PrintLn($this->FormatHeaderPoint(
sprintf('Key: %s', Common\Filesystem\Util::Basename($CertFile, 2)),
$this->Theme::Muted
));
}

$Buffer = new Common\Overbuffer;
$Buffer->Exec(fn() => $Config->EachKeyValue(
fn(string $K, string $V)
=> printf('%s: %s%s', $K, $V, PHP_EOL)
));

file_put_contents($ConfFile, $Buffer->Get());
Common\Filesystem\Util::TryToWriteFile($ConfFile, $Buffer->Get());
$this->PrintOK();

return;
}
Expand Down

0 comments on commit 68ee336

Please sign in to comment.