Add docker-compose start command.
This commit is contained in:
18
src/Task/Start.php
Executable file
18
src/Task/Start.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Droath\RoboDockerCompose\Task;
|
||||
|
||||
use Droath\RoboDockerCompose\DockerServicesTrait;
|
||||
|
||||
/**
|
||||
* Define docker compose start command.
|
||||
*/
|
||||
class Start extends Base
|
||||
{
|
||||
use DockerServicesTrait;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $action = 'start';
|
||||
}
|
||||
@@ -23,6 +23,16 @@ trait loadTasks
|
||||
return $this->task(Down::class, $pathToDockerCompose);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
/**
|
||||
* Docker compose start task.
|
||||
*/
|
||||
protected function taskDockerComposeStart($pathToDockerCompose = null)
|
||||
{
|
||||
return $this->task(Start::class, $pathToDockerCompose);
|
||||
}
|
||||
|
||||
/**
|
||||
* Docker compose restart task.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user