Skip to content

Commit 7032ece

Browse files
committed
Changed links in help for all functions
Removed redundant function
1 parent 93917d3 commit 7032ece

11 files changed

Lines changed: 94 additions & 182 deletions

functions/Initialize-PdcVhdDisk.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ function Initialize-PdcVhdDisk {
1818
.NOTES
1919
Author: Sander Stad (@sqlstad, sqlstad.nl)
2020
21-
Website: https://easyclone.io
21+
Website: https://psdatabaseclone.io
2222
Copyright: (C) Sander Stad, sander@sqlstad.nl
2323
License: MIT https://opensource.org/licenses/MIT
2424
2525
.LINK
26-
https://easyclone.io/
26+
https://psdatabaseclone.io/
2727
2828
.EXAMPLE
2929
Initialize-PdcVhdDisk -Path $path

functions/Invoke-PdcCloneSetup.ps1

Lines changed: 0 additions & 147 deletions
This file was deleted.

functions/Invoke-PdcRepairClone.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Invoke-PdcRepairClone {
2-
<#
2+
<#
33
.SYNOPSIS
44
Invoke-PdcRepairClone repairs the clones
55
@@ -24,12 +24,12 @@ function Invoke-PdcRepairClone {
2424
.NOTES
2525
Author: Sander Stad (@sqlstad, sqlstad.nl)
2626
27-
Website: https://easyclone.io
27+
Website: https://psdatabaseclone.io
2828
Copyright: (C) Sander Stad, sander@sqlstad.nl
2929
License: MIT https://opensource.org/licenses/MIT
3030
3131
.LINK
32-
https://easyclone.io/
32+
https://psdatabaseclone.io/
3333
3434
.EXAMPLE
3535
Invoke-PdcRepairClone -Hostname Host1

functions/New-PdcDatabaseClone.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function New-PdcDatabaseClone {
2-
<#
2+
<#
33
.SYNOPSIS
44
New-PdcDatabaseClone creates a new clone
55
@@ -40,12 +40,12 @@ function New-PdcDatabaseClone {
4040
.NOTES
4141
Author: Sander Stad (@sqlstad, sqlstad.nl)
4242
43-
Website: https://easyclone.io
43+
Website: https://psdatabaseclone.io
4444
Copyright: (C) Sander Stad, sander@sqlstad.nl
4545
License: MIT https://opensource.org/licenses/MIT
4646
4747
.LINK
48-
https://easyclone.io/
48+
https://psdatabaseclone.io/
4949
5050
.EXAMPLE
5151
New-PdcDatabaseClone -SqlInstance SQLDB1 -ParentVhd C:\Temp\images\DB1_20180623203204.vhdx -Destination C:\Temp\clones\ -CloneName DB1_Clone1

functions/New-PdcDatabaseImage.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function New-PdcDatabaseImage {
2-
<#
2+
<#
33
.SYNOPSIS
44
New-PdcDatabaseImage creates a new image
55
@@ -60,12 +60,12 @@ function New-PdcDatabaseImage {
6060
.NOTES
6161
Author: Sander Stad (@sqlstad, sqlstad.nl)
6262
63-
Website: https://easyclone.io
63+
Website: https://psdatabaseclone.io
6464
Copyright: (C) Sander Stad, sander@sqlstad.nl
6565
License: MIT https://opensource.org/licenses/MIT
6666
6767
.LINK
68-
https://easyclone.io/
68+
https://psdatabaseclone.io/
6969
7070
.EXAMPLE
7171
New-PdcDatabaseImage -SourceSqlInstance SQLDB1 -DestinationSqlInstance SQLDB2 -ImageLocalPath C:\Temp\images\ -Database DB1 -CreateFullBackup

functions/New-PdcVhdDisk.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ function New-PdcVhdDisk {
3131
.NOTES
3232
Author: Sander Stad (@sqlstad, sqlstad.nl)
3333
34-
Website: https://easyclone.io
34+
Website: https://psdatabaseclone.io
3535
Copyright: (C) Sander Stad, sander@sqlstad.nl
3636
License: MIT https://opensource.org/licenses/MIT
3737
3838
.LINK
39-
https://easyclone.io/
39+
https://psdatabaseclone.io/
4040
4141
.EXAMPLE
4242
New-PdcVhdDisk -Destination C:\temp -Name Database1 -Size 1GB

functions/Remove-PdcDatabaseClone.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Remove-PdcDatabaseClone {
2-
<#
2+
<#
33
.SYNOPSIS
44
Remove-PdcDatabaseClone removes one or more clones from a host
55
@@ -37,27 +37,27 @@ function Remove-PdcDatabaseClone {
3737
.NOTES
3838
Author: Sander Stad (@sqlstad, sqlstad.nl)
3939
40-
Website: https://easyclone.io
40+
Website: https://psdatabaseclone.io
4141
Copyright: (C) Sander Stad, sander@sqlstad.nl
4242
License: MIT https://opensource.org/licenses/MIT
4343
4444
.LINK
45-
https://easyclone.io/
45+
https://psdatabaseclone.io/
4646
4747
.EXAMPLE
48-
Remove-PdcDatabaseClone -HostName Host1 -Database Clone1
48+
Remove-PdcDatabaseClone -HostName Host1 -Database Clone1
4949
50-
Removes the clones that are registered at Host1 and have the text "Clone1"
50+
Removes the clones that are registered at Host1 and have the text "Clone1"
5151
5252
.EXAMPLE
53-
Remove-PdcDatabaseClone -HostName Host1, Host2, Host3 -Database Clone
53+
Remove-PdcDatabaseClone -HostName Host1, Host2, Host3 -Database Clone
5454
55-
Removes the clones that are registered at multiple hosts and have the text "Clone"
55+
Removes the clones that are registered at multiple hosts and have the text "Clone"
5656
5757
.EXAMPLE
58-
Remove-PdcDatabaseClone -HostName Host1
58+
Remove-PdcDatabaseClone -HostName Host1
5959
60-
Removes all clones from Host1
60+
Removes all clones from Host1
6161
6262
#>
6363
[CmdLetBinding()]

functions/Remove-PdcDatabaseImage.ps1

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,34 @@
11
function Remove-PdcDatabaseImage {
2+
<#
3+
.SYNOPSIS
4+
Remove-PdcDatabaseImage removes one or more images
5+
6+
.DESCRIPTION
7+
The command will remove an image from PSDatabaseClone.
8+
It will also remove all the clones associated with it on the hosts.
9+
10+
.PARAMETER ImageLocation
11+
Location of the image as it's saved in the database or can be seen on the file system.
12+
13+
.PARAMETER Credential
14+
Allows you to login to servers using Windows Auth/Integrated/Trusted. To use:
15+
16+
$scred = Get-Credential, then pass $scred object to the -Credential parameter.
17+
18+
.PARAMETER Force
19+
Forcefully remove the items.
20+
21+
.NOTES
22+
Author: Sander Stad (@sqlstad, sqlstad.nl)
23+
24+
Website: https://psdatabaseclone.io
25+
Copyright: (C) Sander Stad, sander@sqlstad.nl
26+
License: MIT https://opensource.org/licenses/MIT
27+
28+
.LINK
29+
https://psdatabaseclone.io/
30+
31+
#>
232
[CmdLetBinding()]
333

434
param(

functions/Set-PdcConfiguration.ps1

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Set-PdcConfiguration {
2-
<#
2+
<#
33
.SYNOPSIS
44
Set-PdcConfiguration sets up the module
55
@@ -27,24 +27,21 @@ function Set-PdcConfiguration {
2727
.PARAMETER Database
2828
Database to use to save all the information in
2929
30-
.PARAMETER
3130
3231
.NOTES
3332
Author: Sander Stad (@sqlstad, sqlstad.nl)
3433
35-
Website: https://easyclone.io
34+
Website: https://psdatabaseclone.io
3635
Copyright: (C) Sander Stad, sander@sqlstad.nl
3736
License: MIT https://opensource.org/licenses/MIT
3837
3938
.LINK
40-
https://easyclone.io/
39+
https://psdatabaseclone.io/
4140
4241
.EXAMPLE
43-
Set-PdcConfiguration -SqlInstance SQLDB1 -Database EasyClone
44-
45-
Set up the module to use SQLDB1 as the database servers and EasyClone to save the values in
46-
42+
Set-PdcConfiguration -SqlInstance SQLDB1 -Database PSDatabaseClone
4743
44+
Set up the module to use SQLDB1 as the database servers and PSDatabaseClone to save the values in
4845
#>
4946
[CmdLetBinding()]
5047
param(
@@ -60,7 +57,7 @@ function Set-PdcConfiguration {
6057
)
6158

6259
begin {
63-
Write-PSFMessage -Message "Started EasyCone Setup" -Level Output
60+
Write-PSFMessage -Message "Started PSDatabaseClone Setup" -Level Output
6461

6562
# Try connecting to the instance
6663
Write-PSFMessage -Message "Attempting to connect to Sql Server $SqlInstance.." -Level Output
@@ -151,6 +148,6 @@ function Set-PdcConfiguration {
151148
# Test if there are any errors
152149
if (Test-PSFFunctionInterrupt) { return }
153150

154-
Write-PSFMessage -Message "Finished setting up EasyClone" -Level Host
151+
Write-PSFMessage -Message "Finished setting up PSDatabaseClone" -Level Host
155152
}
156153
}

internal/functions/Convert-PdcLocalUncPathToLocalPath.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Convert-PdcLocalUncPathToLocalPath {
2-
<#
2+
<#
33
.SYNOPSIS
44
Convert a UNC path on a computer to a local path.
55
@@ -13,12 +13,12 @@ function Convert-PdcLocalUncPathToLocalPath {
1313
.NOTES
1414
Author: Sander Stad (@sqlstad, sqlstad.nl)
1515
16-
Website: https://easyclone.io
16+
Website: https://psdatabaseclone.io
1717
Copyright: (C) Sander Stad, sander@sqlstad.nl
1818
License: MIT https://opensource.org/licenses/MIT
1919
2020
.LINK
21-
https://easyclone.io/
21+
https://psdatabaseclone.io/
2222
2323
.EXAMPLE
2424
Convert-PdcLocalUncPathToLocalPath -UncPath "\\server\share"

0 commit comments

Comments
 (0)