Extension to execute Lando commands in Robo.
Runs Lando commands in stack. You can define global options for all commands (like Lando init).
The option -y assumed by default but can be overridden on calls to exec()
by passing false
as the second parameter.
~1.0
: Robo >= 1.0.0-RC1
Add "thereference/robo-lando": "~1"
to your composer.json:
{
"require-dev": {
"thereference/robo-lando": "~1"
}
}
Execute composer update
.
composer test
Use the trait (according to your used version) in your RoboFile:
class RoboFile extends \Robo\Tasks
{
// ~1 for Robo >=1.0.0-RC1
use \TheReference\Robo\Task\Lando\loadTasks;
//...
}
$this->taskLandoConfig()
->run();
$this->taskLandoDestroy()
->application("myapp")
->run();
$this->taskLandoInfo()
->application("myapp")
->deep()
->run();
$this->taskLandoInit()
->recipe("drupal8")
->webroot("./")
->run();
$this->taskLandoList()
->run();
$this->taskLandoLogs()
->recipe("drupal8")
->webroot("./")
->run();
$this->taskLandoPoweroff()
->run();
$this->taskLandoRebuild()
->services(array("database", "appserver")
->run();
$this->taskLandoRestart()
->application("myapp")
->run();
$this->taskLandoShare()
->url("http://localhost:32785")
->run();
$this->taskLandoSsh()
->user("johndoe")
->command("ls -l /")
->run();
$this->taskLandoStart()
->application("myapp")
->run();
$this->taskLandoStop()
->application("myapp")
->run();
$this->taskLandoVersion()
->run();