Sha256: 4e84fd8f21b6f534408c1da3ef88312f6f4ed807f6887d49797cf8ea52c0dc0e
Contents?: true
Size: 1.56 KB
Versions: 2
Compression:
Stored size: 1.56 KB
Contents
#!/usr/bin/env bash # This is an RVM Project .rvmrc file, used to automatically load the ruby # development environment upon cd'ing into the directory # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional. environment_ids=("jruby-head@activerecord-jdbc-adapter" "jruby@activerecord-jdbc-adapter") # # First we attempt to load the desired environment directly from the environment # file. This is very fast and efficicent compared to running through the entire # CLI and selector. If you want feedback on which environment was used then # insert the word 'use' after --create as this triggers verbose mode. # for environment_id in ${environment_ids[*]}; do if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] then \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id" if [[ -s ".rvm/hooks/after_use" ]] then . ".rvm/hooks/after_use" fi chosen_environment=$environment_id break fi done # If the environment file has not yet been created, use the RVM CLI to select. if [ -z "$chosen_environment" ] && ! rvm --create ${environment_ids[1]}; then echo "Failed to create RVM environment '${environment_ids[1]}'." fi unset chosen_environment # # If you use an RVM gemset file to install a list of gems (*.gems), you can have # it be automatically loaded. Uncomment the following and adjust the filename if # necessary. # # filename=".gems" # if [[ -s "$filename" ]] ; then # rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d' # fi
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jashmenn-activerecord-jdbc-adapter-1.2.0.0 | .rvmrc |
jashmenn-activerecord-jdbc-adapter-1.2.0 | .rvmrc |