IJPL-172897 Rename EelDescriptor.{upgrade,toEelApi}

According to feedback, the name `upgrade` confuses people.

We refused `getEelApi` because this call usually implies a getter, and a getter usually implies some lightweight operation.

We refused `make`, `convert`, `get` and other short methods because they're as confusing as `upgrade`.

GitOrigin-RevId: 56adf5362f93bc4f98954db79c039e5e898b4550
This commit is contained in:
Vladimir Lagunov
2025-05-20 16:27:30 +00:00
committed by intellij-monorepo-bot
parent a404ba9362
commit 3fcec7e44c
48 changed files with 81 additions and 75 deletions
@@ -94,7 +94,7 @@ internal class CliBasedHatchService private constructor(
override suspend fun createNewProject(projectName: String): PyResult<ProjectStructure> {
val eelApi = workingDirectoryPath.getEelDescriptor().upgrade()
val eelApi = workingDirectoryPath.getEelDescriptor().toEelApi()
val tempDir = eelApi.fs.createTemporaryDirectory(EelFileSystemApi.CreateTemporaryEntryOptions.Builder().build()).getOr { failure ->
return Result.failure(FileSystemOperationHatchError(failure.error))
}