mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
26 lines
468 B
PHP
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'
|
|
);
|
|
}
|
|
}
|