From 75aaa3ca56077e8e2b6d74a8cf7bfb5d041341f1 Mon Sep 17 00:00:00 2001 From: Manuel Tiago Pereira Date: Thu, 30 Jan 2014 00:09:28 +0000 Subject: [PATCH] Fixes #5819: Added --executables to gem uninstall command. --- packaging/gem | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/gem b/packaging/gem index 8c46ceb5b3d..25fc337e14e 100644 --- a/packaging/gem +++ b/packaging/gem @@ -23,7 +23,7 @@ DOCUMENTATION = ''' --- module: gem short_description: Manage Ruby gems -description: +description: - Manage installation and uninstallation of Ruby gems. version_added: "1.1" options: @@ -32,7 +32,7 @@ options: - The name of the gem to be managed. required: true state: - description: + description: - The desired state of the gem. C(latest) ensures that the latest version is installed. required: true choices: [present, absent, latest] @@ -143,6 +143,7 @@ def uninstall(module): cmd.extend([ '--version', module.params['version'] ]) else: cmd.append('--all') + cmd.append('--executable') cmd.append(module.params['name']) module.run_command(cmd, check_rc=True)