Refactor code structure for improved readability and maintainability

This commit is contained in:
baodev0
2026-08-10 08:37:52 +07:00
parent d6d63e5152
commit e3d3dea8aa
31 changed files with 290 additions and 319 deletions
@@ -35,12 +35,11 @@ final class VmRebuildService
public const OS_LINUX = 'LINUX';
public const OS_WINDOWS = 'WINDOWS';
/**
* Default password baked into rebuild templates. Mirrors the create-flow
* template password constant but is duplicated intentionally to keep this
* subsystem standalone.
*/
public const TEMPLATE_PASSWORD = 'TGS@123';
/** Default password baked into rebuild templates — shares config with the create flow. */
public static function templatePassword(): string
{
return \App\Services\VmProvisionService::templatePassword();
}
/**
* Build a fresh RebuildContext from current DB state.