This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 7adced44 Add support for executable pathe overrides
7adced44 is described below
commit 7adced44f063cbcc5b8feeaccf2adfd8b0d1054b
Author: Sebb <[email protected]>
AuthorDate: Mon Feb 12 15:45:26 2024 +0000
Add support for executable pathe overrides
---
lib/whimsy/asf/config.rb | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lib/whimsy/asf/config.rb b/lib/whimsy/asf/config.rb
index 4a48287d..8c5babbd 100644
--- a/lib/whimsy/asf/config.rb
+++ b/lib/whimsy/asf/config.rb
@@ -137,6 +137,15 @@ module ASF
@config[:svn] = path
end
+
+ # Get an executable path override
+ # e.g.
+ # :exepaths:
+ # gpg: /usr/local/bin/gpg3
+ # returns its input if no override is found
+ def self.getexepath(name)
+ @config[:exepaths]&.fetch(name, name) || name
+ end
end
end