2017 © Pedro Peláez
 

robo-tasks robo-drush

Drush CommandStack for Robo Task Runner

image

boedah/robo-drush

Drush CommandStack for Robo Task Runner

  • Monday, January 8, 2018
  • by boedah
  • Repository
  • 6 Watchers
  • 16 Stars
  • 55,688 Installations
  • PHP
  • 9 Dependents
  • 0 Suggesters
  • 10 Forks
  • 5 Open issues
  • 18 Versions
  • 14 % Grown

The README.md

Robo Drush Extension

Extension to execute Drush commands in Robo., (*1)

SensioLabsInsight Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Runs Drush commands in stack. You can define global options for all commands (like Drupal root and uri)., (*3)

The option -y assumed by default but can be overridden on calls to exec() by passing false as the second parameter., (*4)

Table of contents

Installation

For new projects (and Robo >= 1.0.0-RC1), just do:, (*5)

composer require --dev boedah/robo-drush

For older versions of Robo, use:, (*6)

  • ~1.0: Robo <= 0.4.5
  • ~2.1: Robo >= 0.5.2

Testing

composer test, (*7)

Usage

Use the trait (according to your used version) in your RoboFile:, (*8)

class RoboFile extends \Robo\Tasks
{
    // if you use robo-drush ~2.1 for Robo >=0.5.2, or robo-drush >3 for Robo >=1.0.0-RC1
    use \Boedah\Robo\Task\Drush\loadTasks;

    // if you use ~1.0 for Robo ~0.4
    use \Boedah\Robo\Task\Drush;

    //...
}

Examples

Site update

This executes pending database updates and reverts all features (from code to database):, (*9)

$this->taskDrushStack()
    ->drupalRootDirectory('/var/www/html/some-site')
    ->uri('sub.example.com')
    ->maintenanceOn()
    ->updateDb()
    ->revertAllFeatures()
    ->maintenanceOff()
    ->run();

Site install

$this->taskDrushStack()
  ->siteName('Site Name')
  ->siteMail('site-mail@example.com')
  ->locale('de')
  ->accountMail('mail@example.com')
  ->accountName('admin')
  ->accountPass('pw')
  ->dbPrefix('drupal_')
  ->sqliteDbUrl('sites/default/.ht.sqlite')
  ->disableUpdateStatusModule()
  ->siteInstall('minimal')
  ->run();

The Versions

08/01 2018

dev-master

9999999-dev

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Gasser

24/08 2017

dev-release/2.x

dev-release/2.x

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Gasser

24/08 2017

2.2.2

2.2.2.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Gasser

21/08 2017

3.1.1

3.1.1.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Gasser

05/07 2017

3.1.0

3.1.0.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Gasser

01/02 2017

3.0.2

3.0.2.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Gasser

01/02 2017

3.0.1

3.0.1.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Gasser

01/02 2017

3.0.0

3.0.0.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Gasser

27/11 2015

2.2.1

2.2.1.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Gasser

20/09 2015

2.2.0

2.2.0.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Gasser

27/02 2015

2.1.0

2.1.0.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

 

The Development Requires

by Peter Gasser

21/02 2015

2.0.2

2.0.2.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Peter Gasser

25/01 2015

2.0.1

2.0.1.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Peter Gasser

25/01 2015

2.0.0

2.0.0.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Peter Gasser

25/01 2015

1.0.3

1.0.3.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Peter Gasser

25/01 2015

1.0.2

1.0.2.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Peter Gasser

20/06 2014

1.0.1

1.0.1.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Peter Gasser

06/06 2014

1.0.0

1.0.0.0

Drush CommandStack for Robo Task Runner

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Peter Gasser