Skip to content

Commit 42f6df1

Browse files
committed
Update for PR fixes
1 parent 15ee71f commit 42f6df1

File tree

6 files changed

+501
-466
lines changed

6 files changed

+501
-466
lines changed

DSCResources/FirefoxPreferenceHelper.psm1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function Test-FirefoxPreconfiguration
3434
}
3535

3636
$return = @()
37-
if(-not(Test-FirefoxPreference @fileNameParam))
37+
if (-not(Test-FirefoxPreference @fileNameParam))
3838
{
3939
Write-Verbose -Message 'Firefox "GeneralConfigurationFile" preference not set to Mozilla.cfg'
4040
$return += 'filename'
@@ -91,20 +91,20 @@ function Test-ConfigStartWithComment
9191
.SYNOPSIS
9292
Configures firefox preconfiguration requirements.
9393
94-
.PARAMETER Preconfigs
94+
.PARAMETER Preconfiguration
9595
Array of which preconfigurations need to be set.
9696
9797
.PARAMETER InstallDirectory
9898
Directory where FireFox is installed.
9999
#>
100-
function Set-FirefoxPreconfigs
100+
function Set-FirefoxPreconfiguration
101101
{
102102
[CmdletBinding()]
103103
param
104104
(
105105
[Parameter(Mandatory = $true)]
106106
[string[]]
107-
$Preconfigs,
107+
$Preconfiguration,
108108

109109
[Parameter(Mandatory = $true)]
110110
[string]
@@ -116,7 +116,7 @@ function Set-FirefoxPreconfigs
116116
New-Item -Path $autoConfigPath -Type File
117117
}
118118

119-
switch ($Preconfigs)
119+
switch ($Preconfiguration)
120120
{
121121
'filename'
122122
{
@@ -431,7 +431,7 @@ function Format-FireFoxPreference
431431

432432
switch ($Value)
433433
{
434-
{[bool]::TryParse($Value, [ref]$null) }
434+
{ [bool]::TryParse($Value, [ref]$null) }
435435
{
436436
$result = $Value; break
437437
}

DSCResources/MSFT_xFirefoxPreference/MSFT_xFirefoxPreference.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ function Set-TargetResource
9292

9393
if (-not(Test-Path -Path $InstallDirectory))
9494
{
95-
throw -Message "$InstallDirectory not found. Verify Firefox is installed and the correct Install Directory is defined."
95+
throw "$InstallDirectory not found. Verify Firefox is installed and the correct Install Directory is defined."
9696
}
9797

9898
$preconfigs = Test-FirefoxPreconfiguration -InstallDirectory $InstallDirectory
9999
if ($preconfigs)
100100
{
101-
Set-FirefoxPreconfigs -Preconfigs $preconfigs -InstallDirectory $InstallDirectory
101+
Set-FirefoxPreconfiguration -Preconfiguration $preconfigs -InstallDirectory $InstallDirectory
102102
}
103103

104104
if (-not(Test-Path -Path "$InstallDirectory\Mozilla.cfg"))

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@ The default is x86.
2828

2929
### MSFT_xFirefoxPreference
3030

31-
* **PreferenceType**: Specify the type of Preference E.g. lockPref.
31+
* **PreferenceType**: Specify the type of Preference { Pref | lockPref | defaultPref | unlockPref | clearPref }
32+
Specifies the preference type of the Firefox Preference to be configured
3233
* **PreferenceName**: Specify the name of the Preference.
34+
Specifies the name of the Firefox Preference to be configured
3335
* **PreferenceValue**: Specify the value of the Preference.
36+
Specifies value of the Firefox Preference to be configured
3437
* **InstallDirectory**: Specifies the location where Mozilla Firefox is installed.
38+
Specifies the directory where Firefox is installed
3539

3640
## Versions
3741

0 commit comments

Comments
 (0)