8767d8c Use idiomatic parameter naming in AbstractContainerEngine #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
title: Use Idiomatic Parameter Naming in
AbstractContainerEnginedescription: Rename the
docker_optsparameter inAbstractContainerEngineand its implementations to a more generic term to accurately reflect its abstract nature.current_situation: The
AbstractContainerEngine#run_containermethod and its concrete implementations (e.g.,PodmanEngine) usedocker_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_optsorcontainer_options, consistent with the abstraction.technical_details:
AbstractContainerEngine#run_containersignature insrc/container/abstract_container_engine.cr.DockerEngine#run_containerandPodmanEngine#run_containerimplementations (src/container/docker_engine.cr,src/container/podman_engine.cr).src/container/run.cr, to use the new parameter name.