PHP code example of boedah / robo-drush
1. Go to this page and download the library: Download boedah/robo-drush library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
boedah / robo-drush example snippets
class RoboFile extends \Robo\Tasks
{
use \Boedah\Robo\Task\Drush\Tasks;
}
$this->taskDrushStack()
->drupalRootDirectory('/var/www/html/some-site')
->uri('sub.example.com')
->maintenanceOn()
->updateDb()
->revertAllFeatures()
->maintenanceOff()
->run();
$this->taskDrushStack()
->siteName('Site Name')
->siteMail('[email protected]')
->locale('de')
->accountMail('[email protected]')
->accountName('admin')
->accountPass('pw')
->dbPrefix('drupal_')
->sqliteDbUrl('sites/default/.ht.sqlite')
->disableUpdateStatusModule()
->siteInstall('minimal')
->run();