This commit is contained in:
2025-04-07 12:16:11 +01:00
parent ce8b201a1c
commit e15a80163b
62 changed files with 149 additions and 131 deletions

View File

@@ -5,11 +5,11 @@ namespace App\Data\Deployments;
class Plan
{
/**
* @param PlannedStep[] $steps
* @param PlannedStep[] $steps
*/
public function __construct(
public array $steps = [],
) {
//
}
}
}

View File

@@ -18,12 +18,13 @@ class PlannedStep
}
}
public function getSafeScript(): string
public function getSafeScript(): string
{
$script = $this->script;
foreach ($this->secrets as $key => $value) {
$script = str_replace("[!{$key}]", '********', $script);
}
return $script;
}
@@ -33,6 +34,7 @@ class PlannedStep
foreach ($this->secrets as $key => $value) {
$script = str_replace("[!{$key}]", $value, $script);
}
return $script;
}
}
}

View File

@@ -12,4 +12,4 @@ class CreatedServer
public string $ipv4,
public string $ipv6,
) {}
}
}

View File

@@ -10,4 +10,4 @@ class Image
public string $osFlavor,
public string $osVersion,
) {}
}
}

View File

@@ -10,4 +10,4 @@ class Location
public string $country,
public string $city,
) {}
}
}

View File

@@ -5,10 +5,10 @@ namespace App\Data\ServerProviders;
class ServerType
{
/**
* @param string $name The name of the server type
* @param int $cores The number of cores
* @param int $memory The amount of memory in GB
* @param int $disk The amount of disk space in GB
* @param string $name The name of the server type
* @param int $cores The number of cores
* @param int $memory The amount of memory in GB
* @param int $disk The amount of disk space in GB
*/
public function __construct(
public string $id,
@@ -19,4 +19,4 @@ class ServerType
public float $priceMonthly,
public float $priceHourly,
) {}
}
}