coolify/app/Actions/Service/RestartService.php

23 lines
430 B
PHP
Raw Normal View History

2024-07-02 14:12:04 +00:00
<?php
namespace App\Actions\Service;
use App\Models\Service;
use Lorisleiva\Actions\Concerns\AsAction;
class RestartService
{
use AsAction;
public string $jobQueue = 'high';
public function handle(Service $service, bool $pullLatestImages)
2024-07-02 14:12:04 +00:00
{
return StartService::run(
service: $service,
pullLatestImages: $pullLatestImages,
stopBeforeStart: true,
);
2024-07-02 14:12:04 +00:00
}
}