dev/provisioning/modules/drush/manifests/config.pp
changeset 353 bf1bc6b08c46
equal deleted inserted replaced
352:d8a8c57f36c4 353:bf1bc6b08c46
       
     1 class drush::config {
       
     2 
       
     3   #private()
       
     4   if $caller_module_name != $module_name {
       
     5     warning("${name} is not part of the public API of the ${module_name} \
       
     6 module and should not be directly included in the manifest.")
       
     7   }
       
     8 
       
     9   # Bash integration and autocompletion based on the default version.
       
    10   validate_bool($drush::bash_integration,
       
    11                 $drush::bash_autocompletion
       
    12   )
       
    13   if $drush::bash_integration {
       
    14     file { '/etc/profile.d/drushrc.sh':
       
    15       ensure => link,
       
    16       target => "${drush::install_base_path}/default/examples/example.bashrc",
       
    17     }
       
    18   }
       
    19   elsif $drush::bash_autocompletion {
       
    20     file { '/etc/bash_completion.d/drush':
       
    21       ensure => link,
       
    22       target => "${drush::install_base_path}/default/drush.complete.sh",
       
    23     }
       
    24   }
       
    25 
       
    26   # Create aliases.
       
    27   validate_hash($drush::aliases)
       
    28   create_resources(drush::alias, $drush::aliases)
       
    29 
       
    30   # Install extensions.
       
    31   validate_array($drush::extensions)
       
    32   drush::extension{ $drush::extensions: }
       
    33 
       
    34 }
       
    35