summaryrefslogtreecommitdiff
path: root/lib/puppet/module_tool/applications/cleaner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/module_tool/applications/cleaner.rb')
-rw-r--r--lib/puppet/module_tool/applications/cleaner.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/puppet/module_tool/applications/cleaner.rb b/lib/puppet/module_tool/applications/cleaner.rb
new file mode 100644
index 000000000..c42687fc7
--- /dev/null
+++ b/lib/puppet/module_tool/applications/cleaner.rb
@@ -0,0 +1,16 @@
+module Puppet::Module::Tool
+ module Applications
+ class Cleaner < Application
+ def run
+ Puppet::Module::Tool::Cache.clean
+
+ # Return a status Hash containing the status of the clean command
+ # and a status message. This return value is used by the module_tool
+ # face clean action, and the status message, return_value[:msg], is
+ # displayed on the console.
+ #
+ { :status => "success", :msg => "Cleaned module cache." }
+ end
+ end
+ end
+end