executeProjectUpdate function

Future<bool> executeProjectUpdate(
  1. Map<String, dynamic> upperJson, {
  2. required String path,
})

Implementation

Future<bool> executeProjectUpdate(
  Map<String, dynamic> upperJson, {
  required String path,
}) {
  return getUpperProjectFromMap(upperJson).fold(
    (l) async {
      print(l);
      return false;
    },
    (upperJson) async {
      return await updateGrpcServer(
            upperJson,
            path: path,
          ) &&
          await updateDockerFile(
            upperJson.portNumer,
            path: path,
          ) &&
          await updateServices(
            upperJson,
            path: path,
          );
    },
  );
}