add docker-compose stop task
This commit is contained in:
12
src/Task/Stop.php
Normal file
12
src/Task/Stop.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Droath\RoboDockerCompose\Task;
|
||||
|
||||
use Droath\RoboDockerCompose\DockerServicesTrait;
|
||||
|
||||
class Stop extends Base
|
||||
{
|
||||
use DockerServicesTrait;
|
||||
|
||||
protected $action = 'stop';
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user