Add docker-compose pause command.

This commit is contained in:
Travis Tomka
2017-03-30 20:01:05 -06:00
parent 01740ee9e4
commit 761f956826
2 changed files with 24 additions and 0 deletions

18
src/Task/Pause.php Executable file
View File

@@ -0,0 +1,18 @@
<?php
namespace Droath\RoboDockerCompose\Task;
use Droath\RoboDockerCompose\DockerServicesTrait;
/**
* Define docker compose pause command.
*/
class Pause extends Base
{
use DockerServicesTrait;
/**
* {@inheritdoc}
*/
protected $action = 'pause';
}

View File

@@ -24,6 +24,12 @@ trait loadTasks
}
/**
* Docker compose pause task.
*/
protected function taskDockerComposePause($pathToDockerCompose = null)
{
return $this->task(Pause::class, $pathToDockerCompose);
}
/**
* Docker compose start task.