mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
27 lines
606 B
PHP
Executable File
27 lines
606 B
PHP
Executable File
<?php
|
|
|
|
namespace App\SSHCommands\Installation;
|
|
|
|
use App\SSHCommands\Command;
|
|
use Illuminate\Support\Facades\File;
|
|
|
|
class InstallRequirementsCommand extends Command
|
|
{
|
|
public function __construct(protected string $email, protected string $name)
|
|
{
|
|
}
|
|
|
|
public function file(): string
|
|
{
|
|
return File::get(resource_path('commands/installation/install-requirements.sh'));
|
|
}
|
|
|
|
public function content(): string
|
|
{
|
|
return str($this->file())
|
|
->replace('__email__', $this->email)
|
|
->replace('__name__', $this->name)
|
|
->toString();
|
|
}
|
|
}
|