From 1a94e483fecbe76b453c521944bfa0b5a53688e4 Mon Sep 17 00:00:00 2001 From: Gordon Heydon Date: Thu, 8 Mar 2018 16:03:08 +1100 Subject: [PATCH] Create Run Command --- src/Task/Run.php | 29 +++++++++++++++++++++++++++++ src/Task/loadTasks.php | 8 ++++++++ 2 files changed, 37 insertions(+) create mode 100644 src/Task/Run.php 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. */