Skip to content

Commit

Permalink
Renaming Location member to RemotelyTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapatwardhan committed Jul 10, 2015
1 parent 87ee653 commit 4a85f19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Remotely.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
$process | Should Be 11
}

It "can get location of the remotely block" {
It "can get target of the remotely block" {
$output = Remotely { 1 }
$output.Location | Should Be "localhost"
$output.RemotelyTarget | Should Be "localhost"
}

It "can handle delete sessions" {
Expand Down
4 changes: 2 additions & 2 deletions Remotely.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ param(
}
else
{
[object] $outputStream = $childJob.Output | % { $_ }
[object] $outputStream = $childJob.Output | % { $_ }
}

$errorStream = CopyStreams $childJob.Error
Expand All @@ -117,7 +117,7 @@ param(
$outputStream = Add-Member -InputObject $outputStream -PassThru -MemberType ScriptMethod -Name GetDebugOutput -Value { return $this.__Streams.DebugOutput }
$outputStream = Add-Member -InputObject $outputStream -PassThru -MemberType ScriptMethod -Name GetProgressOutput -Value { return $this.__Streams.ProgressOutput }
$outputStream = Add-Member -InputObject $outputStream -PassThru -MemberType ScriptMethod -Name GetWarning -Value { return $this.__Streams.Warning }
$outputStream = Add-Member -InputObject $outputStream -PassThru -MemberType NoteProperty -Name Location -Value $childJob.Location
$outputStream = Add-Member -InputObject $outputStream -PassThru -MemberType NoteProperty -Name RemotelyTarget -Value $childJob.Location

if($childJob.State -eq 'Failed')
{
Expand Down

0 comments on commit 4a85f19

Please sign in to comment.