Skip to content

Instantly share code, notes, and snippets.

@gerane
Created May 21, 2016 16:08
Show Gist options
  • Save gerane/ed25b0a3b6ac8c66af8a33ef0a45bfc7 to your computer and use it in GitHub Desktop.
Save gerane/ed25b0a3b6ac8c66af8a33ef0a45bfc7 to your computer and use it in GitHub Desktop.
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