vito/app/SSH/Cron/Cron.php
Saeed Vaziry cdbde063f0
use blade as conmmands template (#444)
* use blade as conmmands template

* fix lint

* fix ssl
2025-01-27 21:27:58 +01:00

26 lines
468 B
PHP

<?php
namespace App\SSH\Cron;
use App\Exceptions\SSHError;
use App\Models\Server;
class Cron
{
public function __construct(protected Server $server) {}
/**
* @throws SSHError
*/
public function update(string $user, string $cron): void
{
$this->server->ssh()->exec(
view('ssh.cron.update', [
'cron' => $cron,
'user' => $user,
]),
'update-cron'
);
}
}