diff options
author | Andrew Dunstan | 2021-07-29 09:58:08 +0000 |
---|---|---|
committer | Andrew Dunstan | 2021-07-29 09:58:08 +0000 |
commit | 87076c40834c2971f073f69be33a5f95ffa8f8a1 (patch) | |
tree | bd52eca77bed484a8ff47aef529d515e9c6d0e97 | |
parent | 1e8d89f8800e0aaafc66e87e8e5fedf5dbd038cf (diff) |
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.
-rw-r--r-- | src/test/perl/PostgresNode.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index 5cfcbcf810b..8158ea5b2f5 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -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) |