salt icon indicating copy to clipboard operation
salt copied to clipboard

gem state should support adding/removing a gem source

Open RobertFach opened this issue 11 years ago • 4 comments

Hi,

I have a system where I want to install a gem module which can be found on http://gems.github.com. I would like to be able to manage this gem source with a specific gem state like

http://gems.github.com: gem.sources_add

or

http://gems.github.com: gem.sources_remove

I have already found out that the gem module already supports adding and removing sources. So currently the following workaround works:

prepare_gems_github: module.run: - name: gem.sources_add - source_uri: http://gems.github.com

If it's okay, I would start with implementing the two above mentioned states 'gem.sources_add' and 'gem.sources_remove'

Cheers,

RobertFach avatar Feb 03 '15 16:02 RobertFach

@RobertFach, thanks for the feature request.

jfindlay avatar Feb 03 '15 18:02 jfindlay

@jfindlay

Implemented in #20382

RobertFach avatar Feb 04 '15 17:02 RobertFach

@RobertFach, awesome. I updated your pull request to reference this issue, which allows github to automatically close this when that is merged. Thanks.

jfindlay avatar Feb 04 '15 18:02 jfindlay

@RobertFach Since your implementation was merged in #20563 to develop as a new feature, I'm going to close this issue. Thanks again!

rallytime avatar Feb 25 '15 17:02 rallytime