Initial commit.
This commit is contained in:
25
src/Task/loadTasks.php
Normal file
25
src/Task/loadTasks.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Droath\RoboDockerCompose\Task;
|
||||
|
||||
/**
|
||||
* Load docker compose tasks.
|
||||
*/
|
||||
trait loadTasks
|
||||
{
|
||||
/**
|
||||
* Docker compose up task.
|
||||
*/
|
||||
protected function taskDockerComposeUp($pathToDockerCompose = null)
|
||||
{
|
||||
return $this->task(Up::class, $pathToDockerCompose);
|
||||
}
|
||||
|
||||
/**
|
||||
* Docker compose up task.
|
||||
*/
|
||||
protected function taskDockerComposeDown($pathToDockerCompose = null)
|
||||
{
|
||||
return $this->task(Down::class, $pathToDockerCompose);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user