mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-22 03:02:20 +00:00
27 lines
512 B
PHP
Executable File
27 lines
512 B
PHP
Executable File
<?php
|
|
|
|
namespace App\SSHCommands\Website;
|
|
|
|
use App\SSHCommands\Command;
|
|
use Illuminate\Support\Facades\File;
|
|
|
|
class GetEnvCommand extends Command
|
|
{
|
|
public function __construct(
|
|
protected string $domain
|
|
) {
|
|
}
|
|
|
|
public function file(): string
|
|
{
|
|
return File::get(resource_path('commands/website/get-env.sh'));
|
|
}
|
|
|
|
public function content(): string
|
|
{
|
|
return str($this->file())
|
|
->replace('__domain__', $this->domain)
|
|
->toString();
|
|
}
|
|
}
|