Manage ruby gems.
Installs one or several gems.
gems -- string The gems to install
gem_bin -- string : None
Full path to gem
binary to use.
ruby -- string : None
If RVM or rbenv are installed, the ruby version and gemset to use.
Ignored if gem_bin
is specified.
runas -- string : None The user to run gem as.
version -- string : None Specify the version to install for the gem. Doesn't play nice with multiple gems at once
rdoc -- boolean : False Generate RDoc documentation for the gem(s). For rubygems > 3 this is interpreted as the --no-document arg and the ri option will then be ignored
ri -- boolean : False Generate RI documentation for the gem(s). For rubygems > 3 this is interpreted as the --no-document arg and the rdoc option will then be ignored
pre_releases -- boolean : False Include pre-releases in the available versions
proxy -- string : None Use the specified HTTP proxy server for all outgoing traffic. Format: http://hostname[:port]
Use the specified HTTP gem source server to download gem. Format: http://hostname[:port]
CLI Example:
salt '*' gem.install vagrant
salt '*' gem.install redphone gem_bin=/opt/sensu/embedded/bin/gem
List locally installed gems.
prefix -- string : Only list gems when the name matches this prefix.
gem_bin -- string : None
Full path to gem
binary to use.
ruby -- string : None
If RVM or rbenv are installed, the ruby version and gemset to use.
Ignored if gem_bin
is specified.
runas -- string : None The user to run gem as.
CLI Example:
salt '*' gem.list
New in version 2015.8.0.
Check if an upgrade is available for installed gems
Full path to gem
binary to use.
If RVM or rbenv are installed, the ruby version and gemset to use.
Ignored if gem_bin
is specified.
The user to run gem as.
CLI Example:
salt '*' gem.list_upgrades
Add a gem source.
source_uri -- string The source URI to add.
gem_bin -- string : None
Full path to gem
binary to use.
ruby -- string : None
If RVM or rbenv are installed, the ruby version and gemset to use.
Ignored if gem_bin
is specified.
runas -- string : None The user to run gem as.
CLI Example:
salt '*' gem.sources_add http://rubygems.org/
List the configured gem sources.
gem_bin -- string : None
Full path to gem
binary to use.
ruby -- string : None
If RVM or rbenv are installed, the ruby version and gemset to use.
Ignored if gem_bin
is specified.
runas -- string : None The user to run gem as.
CLI Example:
salt '*' gem.sources_list
Remove a gem source.
source_uri -- string The source URI to remove.
gem_bin -- string : None
Full path to gem
binary to use.
ruby -- string : None
If RVM or rbenv are installed, the ruby version and gemset to use.
Ignored if gem_bin
is specified.
runas -- string : None The user to run gem as.
CLI Example:
salt '*' gem.sources_remove http://rubygems.org/
Uninstall one or several gems.
gems -- string The gems to uninstall.
gem_bin -- string : None
Full path to gem
binary to use.
ruby -- string : None
If RVM or rbenv are installed, the ruby version and gemset to use.
Ignored if gem_bin
is specified.
runas -- string : None The user to run gem as.
CLI Example:
salt '*' gem.uninstall vagrant
Update one or several gems.
gems -- string The gems to update.
gem_bin -- string : None
Full path to gem
binary to use.
ruby -- string : None
If RVM or rbenv are installed, the ruby version and gemset to use.
Ignored if gem_bin
is specified.
runas -- string : None The user to run gem as.
CLI Example:
salt '*' gem.update vagrant
Update rubygems.
version -- string : (newest) The version of rubygems to install.
gem_bin -- string : None
Full path to gem
binary to use.
ruby -- string : None
If RVM or rbenv are installed, the ruby version and gemset to use.
Ignored if gem_bin
is specified.
runas -- string : None The user to run gem as.
CLI Example:
salt '*' gem.update_system
Print out the version of gem
gem_bin -- string : None
Full path to gem
binary to use.
ruby -- string : None
If RVM or rbenv are installed, the ruby version and gemset to use.
Ignored if gem_bin
is specified.
runas -- string : None The user to run gem as.
CLI Example:
salt '*' gem.version