PREFIX_OPTIONS | = | [:trace, :json, :yaml] |
environment_name | [R] | |
shell_wrapper | [R] |
Returns the environment identifier for the current environment, as determined from the GEM_HOME.
Define the config accessor, which basically uses config_value_for and the linke to set the env variable.
Creates a new environment with the given name and optionally a set of extra environment variables to be set on load.
Given an environment identifier, it will add the the given gemset to the end to form a qualified identifier name.
Returns the value for a configuration option (mapping to an environment variable). If check_live is true (which it is by default), it will also check the environment for a value.
Returns the path to the env file Suppose that you are in the 1.9.2 environment.
env.env_path # => "~/.rvm/environments/ruby-1.9.2-p0"
Returns the expanded name, using the same method as used by the rvm command line.
Suppose that you are in the 1.9.2 patchlevel Environment.
env.expanded_name # => "ruby-1.9.2-p0"
Returns the path for the given command
Suppose that you are in the 1.9.2 environment.
env.path_for(:rspec) # => ’~/.rvm/gems/ruby-1.9.2-p0/bin/rspec’ env.path_for(:ruby) # => ’~/.rvm/rubies/ruby-1.9.2-p0/bin/ruby‘
Lets you build a command up, without needing to see the output. Examples:
rvm :use, "ree@rails3", :install => true > rvm use ree@rails3 --install rvm :install, "ree@rails3", :rvm_by_path => true, :rubygems_version => "1.8.23" > rvm_rubygems_version=1.8.23 $rvm_path/bin/rvm install ree@rails3
Like Kernel.system, but evaluates it within the environment. Also note that it doesn‘t support redirection etc.
Will get the ruby from the given path. If there is a compatible ruby found, it will then attempt to use the associated gemset. e.g. RVM::Environment.current.use_from_path! Dir.pwd
Generates wrappers with the specified prefix, pointing to ruby_string.
Converts a hash of options to an array of command line argumets. If the value is false, it wont be added but if it is true only the key will be added. Lastly, when the value is neither true or false, to_s will becalled on it and it shall be added to the array.
Takes a list of rubies / items, 1 per line and strips comments and blank lines.
Performs a set operation. If the :env or :environment option is given, it will return a yaml summary (instead of the stdout / stderr etc via a Result object.
Moves certain options (e.g. yaml, json etc) to the front of the arguments list, making stuff like sets work.