diff -r 139bf74b9374 -r e3b168fa7513 dev/provisioning/modules/drush/manifests/config.pp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev/provisioning/modules/drush/manifests/config.pp Tue Oct 18 18:46:45 2016 +0530 @@ -0,0 +1,35 @@ +class drush::config { + + #private() + if $caller_module_name != $module_name { + warning("${name} is not part of the public API of the ${module_name} \ +module and should not be directly included in the manifest.") + } + + # Bash integration and autocompletion based on the default version. + validate_bool($drush::bash_integration, + $drush::bash_autocompletion + ) + if $drush::bash_integration { + file { '/etc/profile.d/drushrc.sh': + ensure => link, + target => "${drush::install_base_path}/default/examples/example.bashrc", + } + } + elsif $drush::bash_autocompletion { + file { '/etc/bash_completion.d/drush': + ensure => link, + target => "${drush::install_base_path}/default/drush.complete.sh", + } + } + + # Create aliases. + validate_hash($drush::aliases) + create_resources(drush::alias, $drush::aliases) + + # Install extensions. + validate_array($drush::extensions) + drush::extension{ $drush::extensions: } + +} +