Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user