Forge Home

drush

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

52,282 downloads

39,625 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

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.