dev/provisioning/modules/drush/manifests/cacheclear.pp
author ymh <ymh.work@gmail.com>
Tue, 08 Nov 2016 11:25:29 +0100
changeset 400 bc39bcecf6a4
parent 353 bf1bc6b08c46
child 410 240ca282331d
permissions -rw-r--r--
Added tag 0.0.7 for changeset 800d6baf35f7

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",
    require     => File[$drush::drush_exe_default],
    refreshonly => true,
  }

}