This file contains 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
[user] | |
name = Chocolatey | |
email = [email protected] | |
[core] | |
autocrlf = false | |
editor = \"C:/Program Files (x86)/GitExtensions/GitExtensions.exe\" fileeditor | |
filemode = false | |
excludesfiles = C:/Users/rob/.gitignore | |
symlinks = false | |
[diff] |
This file contains 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 ConvertTo-ChocoPackage { | |
<# | |
.SYNOPSIS | |
Convert a PowerShell module into a chocolatey package. | |
.DESCRIPTION | |
Convert a PowerShell module into a chocolatey package. | |
.EXAMPLE | |
Find-Module pester | ConvertTo-ChocoPackage | |
Find the module pester on a PS repository and convert the module to a chocolatey package. |
This file contains 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
class MaintenanceWindow { | |
[Bool]$Enabled = $true | |
[DateTime]$StartTime | |
[DateTime]$EndTime | |
[System.DayOfWeek[]]$DaysOfWeek = @([System.DayOfWeek]::Saturday, [System.DayOfWeek]::Sunday) | |
[ValidateSet('Weekly', 'Daily')][string]$Frequency | |
MaintenanceWindow ([DateTime]$StartTime, [DateTime]$EndTime, [String]$Frequency) { | |
$this.StartTime = $StartTime | |
$this.EndTime = $EndTime |
OlderNewer