Puppet Class: crm::drush

Defined in:
puppet/modules/crm/manifests/drush.pp

Overview

Class: crm::drush

Drush commandline Drupal manipulation

Parameters:

  • root (Any)
  • dir (Any)


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'puppet/modules/crm/manifests/drush.pp', line 5

class crm::drush( $root, $dir ) {
    include ::crm

    php::composer::install { 'drush':
      directory => $dir,
      require   => Git::Clone['wikimedia/fundraising/crm/drush'],
    }

    # FIXME: Correctly handle path everywhere.
    $wrapper = '/usr/local/bin/drush'

    file { '/usr/bin/drush':
        ensure  => link,
        target  => "${dir}/drush",
        require => Git::Clone['wikimedia/fundraising/crm/drush']
    }

    file { $wrapper:
        ensure  => present,
        mode    => '0755',
        content => template('crm/drush-wrapper.sh.erb'),
    }

    git::clone { 'wikimedia/fundraising/crm/drush':
      directory => $dir
    }
}