mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 08:17:02 +00:00
Refactoring: extract process handling from async job.
This commit is contained in:
1 parent
cf121062a1
commit
34c9265aa9
3 files changed
+29
-9
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Data;
|
||||
|
||||
use App\Enums\ActivityTypes;
|
||||
use App\Enums\ProcessStatus;
|
||||
use Spatie\LaravelData\Data;
|
||||
|
||||
class RemoteProcessArgs extends Data
|
||||
{
|
||||
public function __construct(
|
||||
protected string $destination,
|
||||
protected string $command,
|
||||
protected int $port = 22,
|
||||
protected string $user = 'root',
|
||||
protected string $type = ActivityTypes::COOLIFY_PROCESS->value,
|
||||
protected string $status = ProcessStatus::HOLDING->value,
|
||||
){}
|
||||
}
|
||||
Reference in new issue
Block a user