mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 15:32:35 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
24
app/SSH/OS/Composer.php
Normal file
24
app/SSH/OS/Composer.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\SSH\OS;
|
||||
|
||||
use App\Exceptions\SSHError;
|
||||
use App\Models\Site;
|
||||
|
||||
class Composer
|
||||
{
|
||||
/**
|
||||
* @throws SSHError
|
||||
*/
|
||||
public function installDependencies(Site $site): void
|
||||
{
|
||||
$site->server->ssh($site->user)->exec(
|
||||
view('ssh.composer.composer-install', [
|
||||
'path' => $site->path,
|
||||
'phpVersion' => $site->php_version,
|
||||
]),
|
||||
'composer-install',
|
||||
$site->id
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user