Platform.sh Config Reader v0.1.0 Platformsh.Get View Source
Reads Platform.sh helper functions
See: https://docs.platform.sh/development/variables.html
Link to this section Summary
Functions
Decodes a Platform.sh environment variable.
value/1 Reads unprefixed environment variable, taking the prefix into account.
value/2 Reads an environment variable, taking the prefix into account.
Link to this section Functions
Decodes a Platform.sh environment variable.
Args:
variable (string):
Base64-encoded JSON (the content of an environment variable).
Returns:
An dict (if representing a JSON object), or a scalar type.
Raises:
JSON decoding error.
value/1 Reads unprefixed environment variable, taking the prefix into account.
Args:
item (string):
The variable to read.
value/2 Reads an environment variable, taking the prefix into account.
Args:
item (string):
The variable to read.
prefix (string):
The Environment variable prefix