Created
May 21, 2016 16:08
-
-
Save gerane/ed25b0a3b6ac8c66af8a33ef0a45bfc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Invoke-PlasterToolkit | |
{ | |
[CmdletBinding()] | |
param | |
( | |
[Microsoft.PowerShell.EditorServices.Extensions.EditorContext]$context, | |
[Parameter(Mandatory=$true)] | |
[string]$Name = (Read-Host 'Please type Toolkit Name') | |
) | |
Process | |
{ | |
$DeployMode = 'NonInteractive' | |
$Template = "$(Get-OneDriveDir)\PowerShell\Plaster\ToolkitTemplate.zip" | |
$Destination = "$(Get-AppToolkitAppsDir)\$Name" | |
Invoke-Plaster -TemplatePath $Template -DestinationPath $Destination -ToolkitName $Name -Version '1.0.0' -DeployMode $DeployMode | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment