ran pint
This commit is contained in:
@@ -5,11 +5,11 @@ namespace App\Data\Deployments;
|
||||
class Plan
|
||||
{
|
||||
/**
|
||||
* @param PlannedStep[] $steps
|
||||
* @param PlannedStep[] $steps
|
||||
*/
|
||||
public function __construct(
|
||||
public array $steps = [],
|
||||
) {
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,4 +12,4 @@ class CreatedServer
|
||||
public string $ipv4,
|
||||
public string $ipv6,
|
||||
) {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,4 +10,4 @@ class Image
|
||||
public string $osFlavor,
|
||||
public string $osVersion,
|
||||
) {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,4 +10,4 @@ class Location
|
||||
public string $country,
|
||||
public string $city,
|
||||
) {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
) {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user