salt.states.gem

Installation of Ruby modules packaged as gems.

A state module to manage rubygems. Gems can be set up to be installed or removed. This module will use RVM if it is installed. In that case you can specify what ruby version and gemset to target.

addressable:
  gem.installed:
    - runas: rvm
    - ruby: jruby@jgemset

Members

installed

salt.states.gem.installed(name, ruby=None, runas=None)

Make sure that a gem is installed.

name
The name of the gem to install
ruby : None
For RVM installations: the ruby version and gemset to target.
runas : None
The user to run gem as.

removed

salt.states.gem.removed(name, ruby=None, runas=None)

Make sure that a gem is not installed.

name
The name of the gem to uninstall
ruby : None
For RVM installations: the ruby version and gemset to target.
runas : None
The user to run gem as.

Parent topic

Table Of Contents

Previous topic

salt.states.file

Next topic

salt.states.git