Skip to content

Commit b6e0776

Browse files
Merge pull request #57 from PowershellFrameworkCollective/development
2.2.5.31
2 parents 748d622 + 373aa0a commit b6e0776

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

PSModuleDevelopment/PSModuleDevelopment.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
RootModule = 'PSModuleDevelopment.psm1'
55

66
# Version number of this module.
7-
ModuleVersion = '2.2.5.30'
7+
ModuleVersion = '2.2.5.31'
88

99
# ID used to uniquely identify this module
1010
GUID = '37dd5fce-e7b5-4d57-ac37-832055ce49d6'

PSModuleDevelopment/PSModuleDevelopment.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$script:PSModuleRoot = $PSScriptRoot
2-
$script:PSModuleVersion = "2.2.5.30"
2+
$script:PSModuleVersion = "2.2.5.31"
33

44
$script:doDotSource = $false
55
if (Get-PSFConfigValue -FullName PSModuleDevelopment.Import.DoDotSource) { $script:doDotSource = $true }

PSModuleDevelopment/changelog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## 2.2.5.31 (September 29th, 2018)
3+
- Fix: Template PSFProject dependencies installed correctly
4+
25
## 2.2.5.30 (September 12th, 2018)
36
- Upd: Template integrated NUnit Test Reporting
47
- Upd: Template support for compiled module files
@@ -77,4 +80,4 @@ Split-PSMDScriptFile: Exports all functions in a file and creates new files, one
7780
- New Alias: hex --> Get-HelpEx
7881

7982
## 1.2.0.0 (August 15th, 2016):
80-
- New function: Get-ExHelp
83+
- New function: Get-ExHelp
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Write-Host "Installing Pester" -ForegroundColor Cyan
22
Install-Module Pester -Force -SkipPublisherCheck
33
Write-Host "Installing PSFramework" -ForegroundColor Cyan
4-
Install-Module PSFramework -Force -SkipPublisherCheck
4+
Install-Module PSFramework -Force -SkipPublisherCheck
5+
Write-Host "Installing PSScriptAnalyzer" -ForegroundColor Cyan
6+
Install-Module PSScriptAnalyzer -Force -SkipPublisherCheck

templates/PSFProject/install.ps1

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
1717
.PARAMETER UserMode
1818
The downloaded module will be moved to the user profile, rather than program files.
19+
20+
.PARAMETER Scope
21+
By default, the downloaded module will be moved to program files.
22+
Setting this to 'CurrentUser' installs to the userprofile of the current user.
1923
2024
.PARAMETER Force
2125
The install script will overwrite an existing module.
@@ -28,6 +32,10 @@ Param (
2832
[switch]
2933
$UserMode,
3034

35+
[ValidateSet('AllUsers', 'CurrentUser')]
36+
[string]
37+
$Scope = "AllUsers",
38+
3139
[switch]
3240
$Force
3341
)
@@ -43,6 +51,15 @@ $BaseUrl = "https://github.com/<InsertUsernameHere>/þnameþ"
4351
$SubFolder = "þnameþ"
4452
#endregion Configuration for cloning script
4553

54+
#region Parameter Calculation
55+
$doUserMode = $false
56+
if ($UserMode) { $doUserMode = $true }
57+
if ($install_CurrentUser) { $doUserMode = $true }
58+
if ($Scope -eq 'CurrentUser') { $doUserMode = $true }
59+
60+
if ($install_Branch) { $Branch = $install_Branch }
61+
#endregion Parameter Calculation
62+
4663
#region Utility Functions
4764
function Compress-Archive
4865
{

0 commit comments

Comments
 (0)