def server_stop(self, config, args): if is_server_running(config): client = Client(config) names = self.get_services(config, "ALL") for name in names: client.stop(name) stop_server(config)
def stop(self, config, args): client = Client(config) client.stop(args.name)