def Run(self, args): src = os.path.abspath(args.xml_file) dst = os.path.join(os.path.dirname(src), 'index.yaml') auto_src = None if args.generated_indexes_file: auto_src = os.path.abspath(args.generated_indexes_file) entry = migrate_config.REGISTRY['datastore-indexes-xml-to-yaml'] migrate_config.Run(entry, src=src, dst=dst, auto_src=auto_src)
def Run(self, args): src = os.path.abspath(args.xml_file) dst = os.path.join(os.path.dirname(src), 'cron.yaml') entry = migrate_config.REGISTRY['cron-xml-to-yaml'] migrate_config.Run(entry, src=src, dst=dst)