Skip to content

Commit c7bd4d6

Browse files
committed
Remove the Get prefix from read-only properties
1 parent 0b5bd98 commit c7bd4d6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Release.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Release {
5151
.OUTPUTS
5252
The download URL.
5353
#>
54-
[uri] GetUrl() {
54+
[uri] Url() {
5555
return "https://archive.apache.org/dist/ant/binaries/apache-ant-$($this.Version)-bin.zip"
5656
}
5757

src/Setup.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Setup {
4545
#>
4646
[string] Download([bool] $OptionalTasks) {
4747
$file = New-TemporaryFile
48-
Invoke-WebRequest $this.Release.GetUrl() -OutFile $file
48+
Invoke-WebRequest $this.Release.Url() -OutFile $file
4949

5050
$directory = Join-Path ([Path]::GetTempPath()) (New-Guid)
5151
Expand-Archive $file $directory -Force

test/Release.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Describe "Release" {
2727
}
2828
}
2929

30-
Context "GetUrl" {
30+
Context "Url" {
3131
It "should return the URL of the Ant archive" {
32-
$existingRelease.GetUrl() | Should -BeExactly "https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.15-bin.zip"
33-
$nonExistingRelease.GetUrl() | Should -BeExactly "https://archive.apache.org/dist/ant/binaries/apache-ant-666.6.6-bin.zip"
32+
$existingRelease.Url() | Should -BeExactly "https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.15-bin.zip"
33+
$nonExistingRelease.Url() | Should -BeExactly "https://archive.apache.org/dist/ant/binaries/apache-ant-666.6.6-bin.zip"
3434
}
3535
}
3636

0 commit comments

Comments
 (0)