8767d8c Use idiomatic parameter naming in AbstractContainerEngine #13

Open
opened 2025-11-19 13:19:47 +00:00 by glenux · 0 comments
Owner

title: Use Idiomatic Parameter Naming in AbstractContainerEngine
description: Rename the docker_opts parameter in AbstractContainerEngine and its implementations to a more generic term to accurately reflect its abstract nature.
current_situation: The AbstractContainerEngine#run_container method and its concrete implementations (e.g., PodmanEngine) use docker_opts : Array(String), which is a Docker-specific name in an abstract context.
expected_outcome: The parameter name is changed to a more generic and abstract term, such as engine_opts or container_options, consistent with the abstraction.
technical_details:

  • Modify AbstractContainerEngine#run_container signature in src/container/abstract_container_engine.cr.
  • Update DockerEngine#run_container and PodmanEngine#run_container implementations (src/container/docker_engine.cr, src/container/podman_engine.cr).
  • Update any call sites, specifically in src/container/run.cr, to use the new parameter name.

--- title: Use Idiomatic Parameter Naming in `AbstractContainerEngine` description: Rename the `docker_opts` parameter in `AbstractContainerEngine` and its implementations to a more generic term to accurately reflect its abstract nature. current_situation: The `AbstractContainerEngine#run_container` method and its concrete implementations (e.g., `PodmanEngine`) use `docker_opts : Array(String)`, which is a Docker-specific name in an abstract context. expected_outcome: The parameter name is changed to a more generic and abstract term, such as `engine_opts` or `container_options`, consistent with the abstraction. technical_details: - Modify `AbstractContainerEngine#run_container` signature in `src/container/abstract_container_engine.cr`. - Update `DockerEngine#run_container` and `PodmanEngine#run_container` implementations (`src/container/docker_engine.cr`, `src/container/podman_engine.cr`). - Update any call sites, specifically in `src/container/run.cr`, to use the new parameter name. ---
glenux added this to the By Status project 2025-11-19 18:02:48 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: glenux/docmachine-cli#13
No description provided.