2017 © Pedro PelĂĄez
 

library cerbere

Drush command line that controls the updates of Drupal modules.

image

smalot/cerbere

Drush command line that controls the updates of Drupal modules.

  • Thursday, March 23, 2017
  • by smalot
  • Repository
  • 2 Watchers
  • 0 Stars
  • 79 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

Cerbere

Cerbere is a Drush commands set performing action on project' modules stored in GIT, SVN or just locally., (*1)

Build Status Latest Stable Version Total Downloads Latest Unstable Version License Scrutinizer Code Quality, (*2)

Requirements

Compatible with both Drush 7.x and Drupal 8.x., (*3)

Installation

Composer

You need first to download this library using composer., (*4)

composer global require smalot/cerbere:dev-master

Go to GetComposer.org to install Composer on your environment., (*5)

Bootstrap

You need to create, or alter, a file named drushrc.php stored in the following folder: ~/.drush., (*6)

See Drush documentation for more detail on this file., (*7)

<?php

// Detected composer dir according to OS platform.
if (($home_dir = getenv('HOME')) && (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')) {
    $composer_dir = $home_dir . '/AppData/Roaming/Composer';
} else {
    $composer_dir = $home_dir . '/.composer';
}

// Include composer autoload file and declare Cerbere commands.
if (is_file($composer_dir . '/vendor/autoload.php') && 
    is_dir($composer_dir . '/vendor/smalot/cerbere/commands')) {
    include_once $composer_dir . '/vendor/autoload.php';

    $options['include'][] = $composer_dir . '/vendor/smalot/cerbere/commands';
}

Doing this step, Drush will be aware of commands provided by Cerbere, otherwise you'll need to use the --include command line option to declare the command folder each time., (*8)

drush --include=$HOME/.composer/vendor/smalot/cerbere/commands

Use

Command : cerbere-update

This report is oriented on the update of the modules. It can be enriched with the hacked flag which will append 2 columns indicating that a module has been locally altered or not., (*9)

  • --no-cache : Disable cache mecanism. Otherwise, remote informations are cached for 1800 seconds.
  • --no-progress : Disable progress bar.
  • --level : Specify analyze verbosity (all, security, unsupported, update) - default : all.
  • --hacked : Append Hacked reporting.
  • --format : Output format (table, csv, json) - default : table.

Example, (*10)

List all outdated module, and check if there has been hacked. Usefull to know if module update can be safely realized., (*11)

drush cerbere-update sites/all/modules/*.info --hacked --level=update

Command : cerbere-hacked

This report is dedicated to the hacked check., (*12)

  • --no-progress : Disable progress bar.
  • --format : Output format (table, csv, json) - default : table.

Roadmap

  • ~~Add Yaml support (Drupal 8.x)~~
  • ~~Fix notices (mkdir / unlink)~~
  • Add error handler on hacked plugin
  • Add logging on hacked plugin
  • Add unit tests on hacked plugin
  • Add cache and option in command line to disable it (archives / hash file)

Credits

Parts of code has been reused from Drupal 7.x core, Hacked module., (*13)

The Versions

23/03 2017

dev-master

9999999-dev

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

23/03 2017

v0.7

0.7.0.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

28/11 2016

v0.6.2

0.6.2.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

27/11 2016

v0.6.1

0.6.1.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

27/11 2016

v0.6

0.6.0.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

05/09 2016

v0.5.3

0.5.3.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

04/09 2016

v0.5.2

0.5.2.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

25/07 2016

v0.5.1

0.5.1.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

20/07 2016

v0.5

0.5.0.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

12/01 2016

v0.4.3

0.4.3.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

06/12 2015

v0.4.2

0.4.2.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

06/12 2015

v0.4.1

0.4.1.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

06/12 2015

v0.4

0.4.0.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

26/11 2015

v0.3

0.3.0.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

24/11 2015

v0.2

0.2.0.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush

23/11 2015

v0.1

0.1.0.0

Drush command line that controls the updates of Drupal modules.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

update command module check drupal drush