gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: -comments


From: gnunet
Subject: [libeufin] branch master updated: -comments
Date: Mon, 09 Oct 2023 23:04:35 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new d30f3a9f -comments
d30f3a9f is described below

commit d30f3a9fcd1c6f930214b649276ea283145141d8
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Oct 9 23:04:43 2023 +0200

    -comments
---
 util/src/main/kotlin/TalerConfig.kt | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/util/src/main/kotlin/TalerConfig.kt 
b/util/src/main/kotlin/TalerConfig.kt
index 5e765f8f..a8cf0ae0 100644
--- a/util/src/main/kotlin/TalerConfig.kt
+++ b/util/src/main/kotlin/TalerConfig.kt
@@ -281,6 +281,10 @@ class TalerConfig(
         return outStr.toString()
     }
 
+    /**
+     * Read values into the configuration from the given entry point
+     * filename.  Defaults are *not* loaded automatically.
+     */
     fun loadFromFilename(filename: String) {
         val f = File(filename)
         val contents = f.readText()
@@ -293,6 +297,10 @@ class TalerConfig(
         }
     }
 
+    /**
+     * Load configuration defaults from the file system
+     * and populate the PATHS section based on the installation path.
+     */
     fun loadDefaults() {
         val installDir = getInstallPath()
         val baseConfigDir = Paths.get(installDir, 
"share/$componentName/config.d").toString()
@@ -453,6 +461,9 @@ class TalerConfig(
         return null
     }
 
+    /**
+     * Guess the path that the component was installed to.
+     */
     fun getInstallPath(): String {
         // We use the location of the libeufin-bank
         // binary to determine the installation prefix.

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]