mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 15:02:34 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
26 lines
466 B
PHP
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'
|
|
);
|
|
}
|
|
}
|