mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
init
This commit is contained in:
25
app/Jobs/Installation/Upgrade.php
Executable file
25
app/Jobs/Installation/Upgrade.php
Executable file
@ -0,0 +1,25 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user