Functions/Private/Get-Artifactory.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function Get-Artifactory {
    [CmdletBinding()]
    param()

    if (-Not (Test-Artifactory)) {
        throw 'Credentials not set. Please use Set-Artifactory first.'
    }

    @{
        Server = $script:ArtifactoryServer
        User   = $script:ArtifactoryUser
        Token  = $script:ArtifactoryToken
    }
}