HomePhorge

(#11803) Add uninstall action for the module face
97fffa8a6b7aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#11803) Add uninstall action for the module face

Without this patch, the module face does not have an action for
uninstalling Puppet modules.

This patch adds an uninstall action to the module face, with initial
support for uninstalling Puppet modules from the default module paths or
specific directories.

This patch also includes the related spec tests.

Example Usage:
Running the following commands will uninstall a module from all
module paths or a specific directory

$ puppet module uninstall apache
Removed /etc/puppet/modules/apache

$ puppet module uninstall --target-directory /usr/share/puppet/modules apache
Removed /usr/share/puppet/modules/apache

Running the Tests:
The uninstall spec tests can be run with the following commands:

$ rspec spec/unit/face/module/uninstall_spec.rb
$ rspec spec/unit/module_tool/uninstaller_spec.rb

Details

Provenance
Kelsey Hightower <kelsey@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUc6667c50d3b4: Merge pull request #324 from glarizza/bug/2.7.x/2273_launchd_dashw
Branches
Unknown
Tags
Unknown

Event Timeline

Kelsey Hightower <kelsey@puppetlabs.com> committed rPU97fffa8a6b7a: (#11803) Add uninstall action for the module face (authored by Kelsey Hightower <kelsey@puppetlabs.com>).Jan 18 2012, 3:39 AM