gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-deployment] branch master updated: bootstrap: curren


From: gnunet
Subject: [GNUnet-SVN] [taler-deployment] branch master updated: bootstrap: currency
Date: Thu, 10 Oct 2019 19:57:14 +0200

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

dold pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new e1b8f91  bootstrap: currency
e1b8f91 is described below

commit e1b8f9192b6a0f890f8df8a574cc352101a5dfca
Author: Florian Dold <address@hidden>
AuthorDate: Thu Oct 10 23:27:09 2019 +0530

    bootstrap: currency
---
 bin/taler-deployment | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/bin/taler-deployment b/bin/taler-deployment
index 016a2f0..659215d 100755
--- a/bin/taler-deployment
+++ b/bin/taler-deployment
@@ -41,6 +41,10 @@ def cli():
     pass
 
 
+# map from environment name to currenct
+currmap = {"test": "TESTKUDOS", "demo": "KUDOS", "int": "INTKUDOS"}
+
+
 @cli.command()
 @click.argument("envname", type=click.Choice(["test", "int", "demo"]))
 def bootstrap(envname):
@@ -73,7 +77,9 @@ def bootstrap(envname):
         r_dir = home / "sources" / r_name
         if not r_dir.exists():
             r_dir.mkdir(parents=True, exist_ok=True)
-            subprocess.run(["git", "-C", sources.as_posix(), "clone", r_url], 
check=True)
+            subprocess.run(
+                ["git", "-C", sources.as_posix(), "clone", r_url], check=True
+            )
         tag = getattr(cfg, "tag_" + r_name)
         subprocess.run(["git", "-C", r_dir.as_posix(), "fetch"], check=True)
         subprocess.run(
@@ -82,7 +88,11 @@ def bootstrap(envname):
         )
 
     with (home / "activate").open("w") as f:
-        f.write(activate_template.format(envname=envname, 
timestamp=str(time.time())))
+        f.write(
+            activate_template.format(
+                envname=envname, timestamp=str(time.time()), 
currency=currmap[envname]
+            )
+        )
 
     (home / "sockets").mkdir(parents=True, exist_ok=True)
     (home / "taler-data").mkdir(parents=True, exist_ok=True)

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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