Functions/Server/Get-BambooInfo.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<#
.SYNOPSIS
    Gets the current Bamboo Server information and version Detail.
.DESCRIPTION
    The cmdlet simply returns the

.EXAMPLE
    Get-BambooInfo

    version : 5.9.4
    edition :
    buildDate : 2015-08-16T00:22:28.000+12:00
    buildNumber : 5919
    state : RUNNING
#>

function Get-BambooInfo {
    [CmdletBinding()]param()

    Invoke-BambooRestMethod -Resource 'info' |
    Expand-BambooResource -ResourceName 'info'
}