updateService function
Implementation
Future<bool> updateService(
UpperService service, {
required int port,
required String path,
}) async {
return (await updateDockerFile(
port,
path: '$path/${service.path}',
)) &&
await writeInFile(
'$path/${service.path}/lib/src',
service.serverFileName,
file_creator.getTableService(
service.serviceFileName,
service.serviceClassName,
service.path,
'',
port: port,
),
) &&
copyConnection(
projectPath: path,
servicePath: '$path/${service.path}',
);
}