- sh = shell.Shell()
- d = deploy.Deployment(".")
- try:
- configure_args = args + command.make_base_args(options)
- sh.call("wizard", "configure", *configure_args, interactive=True)
- except shell.PythonCallError:
- sys.exit(1)
- d.prepareConfig()
+ wc = deploy.WorkingCopy(".")
+ wc.verify()
+ wc.verifyConfigured()
+ # worst case scenario protection
+ for file in wc.application.parametrized_files:
+ shell.call("git", "add", file)
+ shell.call("git", "commit", "--allow-empty", "-am", "Protection commit")
+ shell.call("git", "reset", "HEAD~")
+ wc.prepareConfig()