mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 07:52:34 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
25
app/SSH/OS/Cron.php
Normal file
25
app/SSH/OS/Cron.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?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'
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user