Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4203

Add ':uninstall_options' to gem provider

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.7.5
    • Fix Version/s: PUP 4.1.0
    • Component/s: Types and Providers
    • Labels:
      None
    • Template:
    • Story Points:
      2
    • Sprint:
      RE 2015-04-08
    • Release Notes:
      New Feature

      Description

      I'd be nice to pass custom flags to the gem provider to uninstall ruby gems.

      The `uninstall_options` attribute within the package resource can be set and consumed by the uninstall method within the gem provider in order to achieve this goal.

      Example:

      package { 'mechanize':
        ensure => absent,
        provider => 'gem',
        uninstall_options => '--ignore-dependencies',
      }
      

      This resource results in the following command to be issued:

      /usr/bin/gem uninstall --executables --all --ignore-dependencies mechanize

      Please note that the ['--executables', '--all'] flags are added to the `gem uninstall` command by default.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                melissa Melissa Stone
                QA Contact:
                Eric Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: