summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
Diffstat (limited to 'yarns')
-rw-r--r--yarns/900.yarn21
1 files changed, 13 insertions, 8 deletions
diff --git a/yarns/900.yarn b/yarns/900.yarn
index 4727dbd..8ee31f3 100644
--- a/yarns/900.yarn
+++ b/yarns/900.yarn
@@ -37,14 +37,19 @@
IMPLEMENTS GIVEN a project (\S+), using (\S+), publishing to (\S+)
project = yarnutils.get_next_match()
repo = yarnutils.get_next_match()
- server = yarnutils.get_next_match()
- config = {
- 'projects': {
- project: {
- 'git': repo,
- 'shell_steps': ['ikiwiki --build', 'rsync'],
- },
- },
+
+ if os.path.exists('ick.ick'):
+ config = yaml.safe_load(open('ick.ick'))
+ else:
+ config = {
+ 'projects': {}
+ }
+ config['projects'][project] = {
+ 'git': repo,
+ 'shell_steps': [
+ 'ikiwiki --build',
+ 'rsync',
+ ],
}
write('ick.ick', yaml.safe_dump(config))