A state module to manage rubygems. Gems can be set up to be installed or removed. This module will use RVM or rbenv if they are installed. In that case, you can specify what ruby version and gemset to target.
addressable:
gem.installed:
- user: rvm
- ruby: jruby@jgemset
salt.states.gem.
installed
(name, ruby=None, gem_bin=None, user=None, version=None, rdoc=False, ri=False, pre_releases=False, proxy=None)¶Make sure that a gem is installed.
gem
command to run instead of the default.
Use this to install gems to a non-default ruby install. If you are
using rvm or rbenv use the ruby argument instead.The user under which to run the gem
command
New in version 0.17.0.
salt.states.gem.
removed
(name, ruby=None, user=None, gem_bin=None)¶Make sure that a gem is not installed.
gem
binary to use.gem_bin
is specified.The user under which to run the gem
command
New in version 0.17.0.