vito/app/SSHCommands/Installation/InstallRequirementsCommand.php
2023-08-04 18:28:04 +02:00

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();
}
}