Sha256: 7802f2ebe58c56917b515753274e0a177b5bdceefa671861f485c18f990c1c8f
Contents?: true
Size: 1.01 KB
Versions: 6
Compression:
Stored size: 1.01 KB
Contents
#!/usr/bin/env bash source "$rvm_scripts_path/base" usage() { echo "Usage: rvm tools {identifier,path-identifier,strings}" 1>&2 exit 1 } # Return the identifier that's current in use. tools_identifier() { __rvm_environment_identifier } tools_path_identifier() { if [[ -z "$1" || ! -d "$1" ]]; then echo "Usage: rvm tools path-identifier 'path-to-heck'" return 1 fi # Change to the directory. Do in subshell to keep the env correct. (source $rvm_scripts_path/rvm cd "$1" >/dev/null 2>&1 __rvm_environment_identifier) } tools_strings() { for ruby_name in "$@"; do __rvm_unset_ruby_variables rvm_ruby_string="$ruby_name" if { __rvm_ruby_string && __rvm_select; } >/dev/null 2>&1; then basename "$rvm_ruby_gem_home" else echo "" fi done } [[ -z "$1" ]] && usage action="$1"; shift case "$action" in identifier) tools_identifier ;; path-identifier) tools_path_identifier "$@" ;; strings) tools_strings "$@" ;; *) usage ;; esac exit $?
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
rvm-1.0.0 | scripts/tools |
rvm-0.1.47 | scripts/tools |
rvm-0.1.46 | scripts/tools |
rvm-0.1.45 | scripts/tools |
rvm-0.1.44 | scripts/tools |
rvm-0.1.43 | scripts/tools |