Public/Get-StuccoTemplate.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function Get-StuccoTemplate {
    <#
    .SYNOPSIS
        Returns Stucco's Plaster template
    .DESCRIPTION
        Returns Stucco's Plaster template
    .EXAMPLE
        $template = Get-StuccoTemplate
        $template | New-StuccoModule
 
        Gets the Plaster template from the Stucco module and creates a new module with it
    .LINK
        New-StuccoModule
    #>

    [OutputType([PSCustomObject])]
    [cmdletbinding()]
    param()

    $moduleBase = $ExecutionContext.SessionState.Module.ModuleBase
    Get-PlasterTemplate -Path $moduleBase
}