mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 23:12:35 +00:00
load linode regions and plans dynamically (#367)
This commit is contained in:
@ -107,7 +107,12 @@ public function plans(?string $region): array
|
||||
|
||||
return collect($plans)
|
||||
->mapWithKeys(fn ($value) => [
|
||||
$value['InstanceType'] => $value['InstanceType'].' - '.$value['VCpuInfo']['DefaultVCpus'].' vCPUs, '.$value['MemoryInfo']['SizeInMiB'].' MB RAM',
|
||||
$value['InstanceType'] => __('server_providers.plan', [
|
||||
'name' => $value['InstanceType'],
|
||||
'cpu' => $value['VCpuInfo']['DefaultVCpus'] ?? 'N/A',
|
||||
'memory' => $value['MemoryInfo']['SizeInMiB'] ?? 'N/A',
|
||||
'disk' => $value['InstanceStorageInfo']['TotalSizeInGB'] ?? 'N/A',
|
||||
]),
|
||||
])
|
||||
->toArray();
|
||||
}
|
||||
|
Reference in New Issue
Block a user