dev/provisioning/modules/drush/manifests/cacheclear.pp
changeset 357 e3b168fa7513
parent 353 bf1bc6b08c46
child 410 240ca282331d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev/provisioning/modules/drush/manifests/cacheclear.pp	Tue Oct 18 18:46:45 2016 +0530
@@ -0,0 +1,17 @@
+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,
+  }
+
+}
+