mirror of
https://github.com/coollabsio/coolify.git
synced 2026-10-06 05:58:14 -04:00
Introduce deployment, build, and dual-purpose server roles, with API and UI support, build-server fallback controls, and role-aware resource hosting.
21 lines
325 B
PHP
21 lines
325 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum ServerRole: string
|
|
{
|
|
case DEPLOYMENT = 'deployment';
|
|
case BUILD = 'build';
|
|
case BOTH = 'both';
|
|
|
|
public function canBuild(): bool
|
|
{
|
|
return $this !== self::DEPLOYMENT;
|
|
}
|
|
|
|
public function canDeploy(): bool
|
|
{
|
|
return $this !== self::BUILD;
|
|
}
|
|
}
|