dev/provisioning/modules/drush/manifests/cacheclear.pp
author ymh <ymh.work@gmail.com>
Thu, 16 Nov 2017 16:31:48 +0100
changeset 555 51023e5eae05
parent 410 240ca282331d
permissions -rw-r--r--
Added tag 0.0.24 for changeset f28a539ba106

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,
  }

}