Add docker-compose start command.

This commit is contained in:
Travis Tomka
2017-03-30 20:00:26 -06:00
parent ce1360c733
commit 01740ee9e4
2 changed files with 28 additions and 0 deletions

18
src/Task/Start.php Executable file
View 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';
}

View File

@@ -23,6 +23,16 @@ trait loadTasks
return $this->task(Down::class, $pathToDockerCompose); 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. * Docker compose restart task.
*/ */