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.
This commit is contained in:
Andrew Dunstan 2021-07-29 05:58:08 -04:00
parent 1e8d89f880
commit 87076c4083
No known key found for this signature in database
GPG Key ID: 99FA7FCB59FC3B81

View File

@ -302,6 +302,20 @@ sub backup_dir
=pod
=item $node->install_path()
The configured install path (if any) for the node.
=cut
sub install_path
{
my ($self) = @_;
return $self->{_install_path};
}
=pod
=item $node->info()
Return a string containing human-readable diagnostic information (paths, etc)