Public/global.ps1


function Import-RKConfig {
    <#
.Description
Loads a json files of settings into environments.
Useful when running locally - on the build server these would be expected to be there by default
#>

    [CmdletBinding()]
    param (
        [Parameter()]
        [string]
        $ConfigFile = "./config.json"
    )

    $Config = (Get-Content -Path $ConfigFile | ConvertFrom-Json)
    Set-RKEnvironmentVariablesFromObject $Config
}