ymbra/drupalrobotasks

This package is abandoned and no longer maintained. The author suggests using the ymbra/drobo package instead.

Handy tasks to manage a Drupal 8 site

1.0.11 2020-02-14 11:06 UTC

This package is auto-updated.

Last update: 2021-02-02 14:22:57 UTC


README

PHP library based in Robo that provides handy tasks to manage a Drupal 8 site.

Requirements

Install

Via Composer

$ composer require ymbra/drobo

Available tasks

Install Drupal site.

$ vendor/bin/drobo site:install

Update Drupal site.

$ vendor/bin/drobo site:update

Backup Drupal database.

$ vendor/bin/drobo db:backup

Create Custom tasks

  1. Create directory structure /drobo/Commands in your project root.
  2. Create CustomCommands.php inside /drobo/Commands:
namespace Drobo\Commands;

use Robo\Tasks;

/**
 * Custom tasks for the project.
 */
class CustomCommands extends Tasks {
  public function helloWorld() {
    $this->io()->newLine();
      $this->io()->title('Hello World.');
  }
}

License

Please see License File for more information.