diff --git a/src/Task/Run.php b/src/Task/Run.php new file mode 100644 index 0000000..44da9ae --- /dev/null +++ b/src/Task/Run.php @@ -0,0 +1,29 @@ +option('workdir', $workdir, '='); + + return $this; + } + +} diff --git a/src/Task/loadTasks.php b/src/Task/loadTasks.php index ac04ea2..235e1c7 100755 --- a/src/Task/loadTasks.php +++ b/src/Task/loadTasks.php @@ -55,6 +55,14 @@ trait loadTasks return $this->task(Execute::class, $pathToDockerCompose); } + /** + * Docker compose execute task. + */ + protected function taskDockerComposeRun($pathToDockerCompose = null) + { + return $this->task(Run::class, $pathToDockerCompose); + } + /** * Docker compose build task. */