vito/app/Jobs/Installation/Upgrade.php
Saeed Vaziry 5c72f12490 init
2023-07-02 12:47:50 +02:00

26 lines
440 B
PHP
Executable File

<?php
namespace App\Jobs\Installation;
use App\Models\Server;
use App\SSHCommands\UpgradeCommand;
use Throwable;
class Upgrade extends InstallationJob
{
protected Server $server;
public function __construct(Server $server)
{
$this->server = $server;
}
/**
* @throws Throwable
*/
public function handle(): void
{
$this->server->ssh()->exec(new UpgradeCommand(), 'upgrade');
}
}