Manage ruby installations and gemsets with RVM, the Ruby Version Manager.
salt.modules.rvm.
do
(ruby, command, runas=None, cwd=None)¶Execute a command in an RVM controlled environment.
CLI Example:
salt '*' rvm.do 2.0.0 <command>
salt.modules.rvm.
gemset_copy
(source, destination, runas=None)¶Copy all gems from one gemset to another.
CLI Example:
salt '*' rvm.gemset_copy foobar bazquo
salt.modules.rvm.
gemset_create
(ruby, gemset, runas=None)¶Creates a gemset.
CLI Example:
salt '*' rvm.gemset_create 2.0.0 foobar
salt.modules.rvm.
gemset_delete
(ruby, gemset, runas=None)¶Deletes a gemset.
CLI Example:
salt '*' rvm.gemset_delete 2.0.0 foobar
salt.modules.rvm.
gemset_empty
(ruby, gemset, runas=None)¶Remove all gems from a gemset.
CLI Example:
salt '*' rvm.gemset_empty 2.0.0 foobar
salt.modules.rvm.
gemset_list
(ruby='default', runas=None)¶List all gemsets for the given ruby.
CLI Example:
salt '*' rvm.gemset_list
salt.modules.rvm.
gemset_list_all
(runas=None)¶List all gemsets for all installed rubies.
Note that you must have set a default ruby before this can work.
CLI Example:
salt '*' rvm.gemset_list_all
salt.modules.rvm.
get
(version='stable', runas=None)¶Update RVM.
CLI Example:
salt '*' rvm.get
salt.modules.rvm.
install
(runas=None)¶Install RVM system wide.
CLI Example:
salt '*' rvm.install
salt.modules.rvm.
install_ruby
(ruby, runas=None)¶Install a ruby implementation.
CLI Example:
salt '*' rvm.install_ruby 1.9.3-p385
salt.modules.rvm.
is_installed
(runas=None)¶Check if RVM is installed.
CLI Example:
salt '*' rvm.is_installed
salt.modules.rvm.
list
(runas=None)¶List all rvm installed rubies.
CLI Example:
salt '*' rvm.list
salt.modules.rvm.
reinstall_ruby
(ruby, runas=None)¶Reinstall a ruby implementation.
CLI Example:
salt '*' rvm.reinstall_ruby 1.9.3-p385
salt.modules.rvm.
rubygems
(ruby, version, runas=None)¶Installs a specific rubygems version in the given ruby.
CLI Example:
salt '*' rvm.rubygems 2.0.0 1.8.24
salt.modules.rvm.
set_default
(ruby, runas=None)¶Set the default ruby.
CLI Example:
salt '*' rvm.set_default 2.0.0
salt.modules.rvm.
wrapper
(ruby_string, wrapper_prefix, runas=None, *binaries)¶Install RVM wrapper scripts.
CLI Example:
salt '*' rvm.wrapper <ruby_string> <wrapper_prefix>