Forge Home

drush

This module installs Drush, a command line utility for Drupal.

52,142 downloads

39,540 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.2 (latest)
  • 0.1.1
  • 0.1.0
  • 0.0.4
  • 0.0.3
  • 0.0.2 (deleted)
  • 0.0.1
released May 31st 2016
This version is compatible with:
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'previousnext-drush', '0.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add previousnext-drush
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install previousnext-drush --version 0.1.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: php, composer, drush

Documentation

previousnext/drush — version 0.1.2 May 31st 2016

puppet-drush

Build
Status

This module installs Drush, a command line shell and Unix scripting interface for Drupal.

Installation

Using the Puppet Module Tool, install the previousnext/drush module by running the following command:

puppet module install previousnext/drush

Otherwise, clone this repository and make sure to install the proper dependencies (puppet-composer):

git clone git://github.com/previousnext/puppet-drush.git modules/drush

Important: the right puppet-composer module is willdurand/puppet-composer. Do not use any other puppet-composer module.

Usage

Include the drush::drush class:

include drush::drush

You can specify the version you want to install:

drush::drush { 'drush8':
  version => '8',
}

You can specify the link name you want to get, and the target directory (aka where to install Drush):

drush::drush { 'drush':
  link_name => '/usr/local/bin/drush',
  target_dir   => '/usr/local'
}

You can specify a particular user that will be the owner of the Drush directory:

drush::drush { 'drush7':
  user => 'foo',
}

It is possible to install multiple versions side by side, but remember to pass a custom link name for each if you do:

drush::drush { 'drush8':
  version      => '8',
  link_name => '/usr/local/bin/drush8',
}

drush::drush { 'drush7':
  link_name => '/usr/local/bin/drush7',
}

Or you can use hiera to specify drush resources:

---
classes:
  - drush

drush:
  drush62
    version:   '6.2'
    link_name: '/usr/local/bin/drush-legacy'
  drush67
    version:   '6.7'
  drush7
    version:   '7'
    link_name: '/usr/local/bin/drush7'
  drush8
    version:   '8'
    link_name: '/usr/local/bin/drush8'

Running the tests

Install the dependencies using Bundler:

BUNDLE_GEMFILE=.gemfile bundle install

Run the following command:

BUNDLE_GEMFILE=.gemfile bundle exec rake validate lint spec SPEC_OPTS='--format documentation'

License

puppet-drush is released under the License. See the bundled LICENSE file for details.

Acknowledgement

puppet-drush is based on puppet-composer by William Durand.