mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-20 22:14:52 +00:00
feat: add deployments as activity
fix: tests refactor: remoteProcess
This commit is contained in:
1 parent
9019d1484e
commit
78c4344583
15 files changed
+81
-81
No files matched your search
@@ -10,10 +10,23 @@ class DispatchRemoteProcess
|
||||
{
|
||||
protected Activity $activity;
|
||||
|
||||
public function __construct(RemoteProcessArgs $remoteProcessArgs){
|
||||
$this->activity = activity()
|
||||
->withProperties($remoteProcessArgs->toArray())
|
||||
->log("");
|
||||
public function __construct(RemoteProcessArgs $remoteProcessArgs)
|
||||
{
|
||||
if ($remoteProcessArgs->model) {
|
||||
$properties = $remoteProcessArgs->toArray();
|
||||
unset($properties['model']);
|
||||
|
||||
$this->activity = activity()
|
||||
->withProperties($properties)
|
||||
->performedOn($remoteProcessArgs->model)
|
||||
->event('deployment')
|
||||
->log("");
|
||||
} else {
|
||||
$this->activity = activity()
|
||||
->withProperties($remoteProcessArgs->toArray())
|
||||
->event('remote_process')
|
||||
->log("");
|
||||
}
|
||||
}
|
||||
|
||||
public function __invoke(): Activity
|
||||
|
||||
Reference in new issue
Block a user