Version information
This version is compatible with:
- ,
Start using this module
Add this module to your Puppetfile:
mod 'previousnext-drush', '0.1.2'
Learn more about managing modules with a PuppetfileDocumentation
puppet-drush
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.
Dependencies
- willdurand/composer (>=1.1.1)
Copyright (c) 2015 PreviousNext <admin@previousnext.com.au> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.