Files
vito/app/SSH/OS/Cron.php
Saeed Vaziry 131b828807 Plugins base (#613)
* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
2025-06-14 14:35:18 +02:00

26 lines
466 B
PHP

<?php
namespace App\SSH\OS;
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'
);
}
}