_scripts_application_list = [
"mediawiki", "wordpress", "joomla", "e107", "gallery2",
"phpBB", "advancedbook", "phpical", "trac", "turbogears", "django",
+ "rails",
# these are technically deprecated
"advancedpoll", "gallery",
]
continue
if options.exists and not os.path.exists(os.path.join(d.location, options.exists)):
continue
- print d.location
+ if options.url:
+ print d.url.geturl()
+ else:
+ print d.location
if errors:
logging.warning("%d errors, see 'wizard errors --verbose' for details" % errors)
parser = command.WizardOptionParser(usage)
parser.add_option("-e", "--exists", dest="exists",
help="only print deployment if FILE exists", metavar="FILE")
+ parser.add_option("--url", dest="url", action="store_true",
+ default=False, help="prints URLs of deployment instead of path")
baton.push(parser, "versions_path")
baton.push(parser, "user")
options, args = parser.parse_all(argv)
d = Deployment.parse(line)
name = d.application.name
except app.NoSuchApplication as e:
+ if not e.location:
+ try:
+ e.location = line.split(':')[0]
+ except IndexError:
+ e.location = line
if yield_errors:
yield e
continue