style updates
This commit is contained in:
@@ -1,6 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\CloudDevOps\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Modules\CloudDevOps\Models\DeploymentHealthCheck;
|
||||
use Modules\CloudDevOps\Services\HealthCheckRunner;
|
||||
final class CloudDevOpsHealthCommand extends Command { protected $signature='cloud-devops:health'; protected $description='Run all active deployment health checks'; public function handle(HealthCheckRunner $runner): int { DeploymentHealthCheck::query()->each(fn($check)=>$runner->run($check)); $this->info('Health checks completed.'); return self::SUCCESS; } }
|
||||
|
||||
final class CloudDevOpsHealthCommand extends Command
|
||||
{
|
||||
protected $signature = 'cloud-devops:health';
|
||||
|
||||
protected $description = 'Run all active deployment health checks';
|
||||
|
||||
public function handle(HealthCheckRunner $runner): int
|
||||
{
|
||||
DeploymentHealthCheck::query()->each(fn ($check) => $runner->run($check));
|
||||
$this->info('Health checks completed.');
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user