From 5b79d2fb81dd2c6275d98bb62788cf2b8342304d Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Sat, 25 Mar 2017 11:46:12 +0100 Subject: [PATCH] meta --- make.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/make.py b/make.py index 9e764e3..d260067 100644 --- a/make.py +++ b/make.py @@ -47,19 +47,19 @@ build_$BOX: description = mdin.read().strip() mdout.write('''{ - "description": "%s", - "short_description": "%s", - "name": "henrietta/%s", + "description": "$DESCRIPTION", + "short_description": "$DESCRIPTION", + "name": "henrietta/$BOX", "versions": [{ "version": "1", "status": "active", - "description_html": "<p>%s</p>", - "description_markdown": "%s", + "description_html": "<p>$DESCRIPTION</p>", + "description_markdown": "$DESCRIPTION", "providers": [{ "name": "virtualbox", - "url": "http://dev.dms-serwis.com.pl/vagrant/%s.box" + "url": "http://dev.dms-serwis.com.pl/vagrant/$BOX.box" }] }] } -''' % (description, description, box, description, description, box)) +'''.replace('$DESCRIPTION', description).replace('$BOX', os.path.split(os.getcwd())[-1])) -- GitLab