dev/provisioning/modules/drush/manifests/cacheclear.pp
author ymh <ymh.work@gmail.com>
Wed, 01 Feb 2017 17:54:44 +0100
changeset 492 acecbffac2c4
parent 410 240ca282331d
permissions -rw-r--r--
on notice display add external link to subject, locations, and languages, correct #0025938

class drush::cacheclear {

  #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.")
  }

  # Clear drush cache on demand.
  exec { 'drush-cc-drush':
    command     => "${drush::drush_exe_default} cc drush",
    environment => ["DRUSH_PHP=${drush::drush_php}"],
    require     => File[$drush::drush_exe_default],
    refreshonly => true,
  }

}