You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
Refactor the “where to execute this task?” logic out from Spark\Robo\Plugin\Commands\DrushCommand so that any Robo command inside spark can leverage it. This is a blocker for the GDPR dump sanitization task.
One approach would amount to moving the "isContainer" variable up to Spark\Robo\Tasks, and changing how the task execution code works in Tasks to take the container name and "isContaner" logic into account.
Another challenge will be figuring out how to generalize certain caveats, like the execution directory, which appears to be different when inside the container versus outside. In this snippet we are changing both the webroot location as well as the path to the command binary drush when inside the container.
Would it make sense to have a general way for Command files to override or instantiate their own default container name where their tasks should be run?
Refactor the “where to execute this task?” logic out from
Spark\Robo\Plugin\Commands\DrushCommand
so that any Robo command inside spark can leverage it. This is a blocker for the GDPR dump sanitization task.One approach would amount to moving the "isContainer" variable up to
Spark\Robo\Tasks
, and changing how the task execution code works in Tasks to take the container name and "isContaner" logic into account.Here is how we're current using isContainer:
spark/src/Robo/Plugin/Commands/DrushCommands.php
Lines 30 to 43 in 38f1989
Another challenge will be figuring out how to generalize certain caveats, like the execution directory, which appears to be different when inside the container versus outside. In this snippet we are changing both the webroot location as well as the path to the command binary
drush
when inside the container.spark/src/Robo/Plugin/Commands/DrushCommands.php
Lines 13 to 23 in 38f1989
/cc @balintk @brants
The text was updated successfully, but these errors were encountered: