Git Product home page Git Product logo

puppet-drush's Introduction

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.

puppet-drush's People

Contributors

cafuego avatar

Watchers

Phil Fenstermacher avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.