mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
29 lines
596 B
PHP
Executable File
29 lines
596 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Jobs\Installation;
|
|
|
|
use App\Models\Server;
|
|
use App\SSHCommands\Installation\InstallRequirementsCommand;
|
|
use Throwable;
|
|
|
|
class InstallRequirements extends InstallationJob
|
|
{
|
|
protected Server $server;
|
|
|
|
public function __construct(Server $server)
|
|
{
|
|
$this->server = $server;
|
|
}
|
|
|
|
/**
|
|
* @throws Throwable
|
|
*/
|
|
public function handle(): void
|
|
{
|
|
$this->server->ssh()->exec(new InstallRequirementsCommand(
|
|
$this->server->creator->email,
|
|
$this->server->creator->name,
|
|
), 'install-requirements');
|
|
}
|
|
}
|