mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-16 10:15:05 +00:00
Refactoring: extract process handling from async job.
This commit is contained in:
1 parent
6524fade3e
commit
e74c464857
6 files changed
+139
-118
No files matched your search
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Services\CoolifyProcess;
|
||||
use Illuminate\Process\ProcessResult;
|
||||
use Spatie\Activitylog\Contracts\Activity;
|
||||
|
||||
if (! function_exists('coolifyProcess')) {
|
||||
@@ -10,7 +9,7 @@ if (! function_exists('coolifyProcess')) {
|
||||
* Run a Coolify Process, which SSH's into a machine to run the command(s).
|
||||
*
|
||||
*/
|
||||
function coolifyProcess($command, $destination): Activity|ProcessResult
|
||||
function coolifyProcess($command, $destination): Activity
|
||||
{
|
||||
$process = resolve(CoolifyProcess::class, [
|
||||
'destination' => $destination,
|
||||
|
||||
Reference in new issue
Block a user