Add docker-compose pause command.
This commit is contained in:
18
src/Task/Pause.php
Executable file
18
src/Task/Pause.php
Executable 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';
|
||||||
|
}
|
||||||
@@ -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.
|
* Docker compose start task.
|
||||||
|
|||||||
Reference in New Issue
Block a user