mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +00:00
26 lines
504 B
PHP
26 lines
504 B
PHP
<?php
|
|
|
|
namespace App\SSHCommands\Supervisor;
|
|
|
|
use App\SSHCommands\Command;
|
|
use Illuminate\Support\Facades\File;
|
|
|
|
class StopWorkerCommand extends Command
|
|
{
|
|
public function __construct(protected string $id)
|
|
{
|
|
}
|
|
|
|
public function file(): string
|
|
{
|
|
return File::get(resource_path('commands/supervisor/stop-worker.sh'));
|
|
}
|
|
|
|
public function content(): string
|
|
{
|
|
return str($this->file())
|
|
->replace('__id__', $this->id)
|
|
->toString();
|
|
}
|
|
}
|