import logging
import optparse
import sys
+import distutils.version
-from wizard import command, deploy, git
+from wizard import command, deploy, git, shell, util
def main(argv, baton):
application = args[0]
except IndexError:
parser.error("Use 'wizard configure --help APP' to see APP-specific options.")
+ version = None # not relevant
else:
tag = git.describe()
application, _, version = tag.partition('-')
options, args = parser.parse_all(argv)
handler.handle(options)
- app.install(options)
+ app.install(distutils.version.LooseVersion(version), options)
+
+ sh = shell.Shell()
+ message = "Autoinstall configuration of %s locker.\n\n%s" % (util.get_dir_owner(), util.get_git_footer())
+ util.set_git_env()
+ try:
+ message += "\nConfigured-by: " + util.get_operator_git()
+ except util.NoOperatorInfo:
+ pass
+ sh.call("git", "commit", "--allow-empty", "-a", "-m", message)