print("[!] Unknown built-in function:", str(e)) if args.update: print( "[+] The vFeed Database must be downloaded from the official repository at https://vfeed.io" ) print("[+] Once downloaded, decompress it into your API repository.") if args.banner: banner() if args.migrate: # checking whether the MongoDB server is running if mongo_server("mongod"): print("[+] Mongo service is up. Starting migrating ....") Migrate() else: print("[!] Mongo service is probably not up.") if args.stats: method_name = args.stats[0] try: result = getattr(Stats(), method_name) print(result()) except Exception as e: print("[!] Unknown built-in function:", str(e)) if args.list: enum_classes("list", "") if args.method:
print(result()) except Exception as e: print("[!] Unknown built-in function:", str(e)) if args.update: Update().update() if args.banner: banner() if args.migrate: # checking whether the MongoDB server is running # todo This test will be moved to Migrate class if mongo_server("mongod"): print("[+] Mongo service is up") if Migrate(): print("[+] Migration successfully completed") else: print("[!] Mongo service is probably not up.") if args.stats: method_name = args.stats[0] try: result = getattr(Stats(), method_name) print(result()) except Exception as e: print("[!] Unknown built-in function:", str(e)) if args.list: enum_classes("list", "")