r"""Add a task to run a command inside the container when building. Similar to `docker exec`. Args: task (TaskConfig): The configuration for the task. Returns: DockerRuntime: The DockerRuntime instance.
(
self,
task: TaskConfig,
)
| 120 | return self |
| 121 | |
| 122 | def add_task( |
| 123 | self, |
| 124 | task: TaskConfig, |
| 125 | ) -> "DockerRuntime": |
| 126 | r"""Add a task to run a command inside the container when building. |
| 127 | Similar to `docker exec`. |
| 128 | |
| 129 | Args: |
| 130 | task (TaskConfig): The configuration for the task. |
| 131 | |
| 132 | Returns: |
| 133 | DockerRuntime: The DockerRuntime instance. |
| 134 | """ |
| 135 | self.tasks.append(task) |
| 136 | return self |
| 137 | |
| 138 | def exec_run( |
| 139 | self, |
nothing calls this directly
no outgoing calls
no test coverage detected