add docker-compose stop task

This commit is contained in:
Andreas Kiessling
2019-11-03 19:31:45 +01:00
parent 0d13259ca9
commit 7887216dc1
2 changed files with 21 additions and 0 deletions

12
src/Task/Stop.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
namespace Droath\RoboDockerCompose\Task;
use Droath\RoboDockerCompose\DockerServicesTrait;
class Stop extends Base
{
use DockerServicesTrait;
protected $action = 'stop';
}

View File

@@ -94,4 +94,13 @@ trait loadTasks
{
return $this->task(Build::class, $pathToDockerCompose);
}
/**
* Docker compose build task.
* @return \Droath\RoboDockerCompose\Task\Stop
*/
protected function taskDockerComposeStop($pathToDockerCompose = null)
{
return $this->task(Stop::class, $pathToDockerCompose);
}
}