3 from wizard import command, deploy, shell, util
6 options, args = parse_args(argv, baton)
8 # Directory information not transferred via command line, so this
9 # will not error due to the changed directory.
10 shell.drop_priviledges(".", options.log_file)
11 # XXX: this should be abstracted away!
12 if os.path.exists(".git/WIZARD_REPO"):
13 util.chdir(shell.eval('git', 'config', 'remote.origin.url'))
14 production = deploy.ProductionCopy(".")
16 open('.scripts/blacklisted', 'w').write(reason + "\n")
18 def parse_args(argv, baton):
19 usage = """usage: %prog blacklist [ARGS] REASON
21 Touches .scripts/blacklisted so that we don't attempt
22 to upgrade the script in the future."""
23 parser = command.WizardOptionParser(usage)
24 options, args = parser.parse_all(argv)
26 parser.error("too many arguments")
28 parser.error("must specify reason")