equal
deleted
inserted
replaced
|
1 define drush::extension() { |
|
2 |
|
3 if (!defined(Class['drush'])) { |
|
4 fail('You must include class drush before declaring aliases') |
|
5 } |
|
6 |
|
7 # Split $name at the dash to eliminate the version component. |
|
8 $parts = split($name, '-') |
|
9 $extension_name = $parts[0] |
|
10 |
|
11 exec {"${drush::drush_exe_default} dl ${name}": |
|
12 command => "/usr/bin/su - -c '${drush::drush_exe_default} dl ${name}'", |
|
13 creates => "/usr/share/drush/commands/${extension_name}", |
|
14 notify => Class['drush::cacheclear'], |
|
15 } |
|
16 |
|
17 } |