]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/command/prepare_config.py
Rewrite parametrize to use new parametrizeWithVars
[wizard.git] / wizard / command / prepare_config.py
index 7d4933967fe6f0b6c80ad32d05d688ef443b5769..13a4bc92910d28aaa8a99c6962d968d567cada77 100644 (file)
@@ -5,15 +5,14 @@ from wizard import command, deploy, shell
 
 def main(argv, baton):
     options, args = parse_args(argv, baton)
-    sh = shell.Shell()
     wc = deploy.WorkingCopy(".")
     wc.verify()
     wc.verifyConfigured()
     # worst case scenario protection
     for file in wc.application.parametrized_files:
-        sh.call("git", "add", file)
-    sh.call("git", "commit", "--allow-empty", "-am", "Protection commit")
-    sh.call("git", "reset", "HEAD~")
+        shell.call("git", "add", file)
+    shell.call("git", "commit", "--allow-empty", "-am", "Protection commit")
+    shell.call("git", "reset", "HEAD~")
     wc.prepareConfig()
 
 def parse_args(argv, baton):