Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 87076c4

Browse files
committed
Add a getter function for a PostgresNode install_path
Experience has shown this can be useful, and while not strictly necessary we should not normally expose the internals of PostgresNode objects.
1 parent 1e8d89f commit 87076c4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,20 @@ sub backup_dir
302302

303303
=pod
304304
305+
=item $node->install_path()
306+
307+
The configured install path (if any) for the node.
308+
309+
=cut
310+
311+
sub install_path
312+
{
313+
my ($self) = @_;
314+
return $self->{_install_path};
315+
}
316+
317+
=pod
318+
305319
=item $node->info()
306320
307321
Return a string containing human-readable diagnostic information (paths, etc)

0 commit comments

Comments
 (0)