Sha256: 531f0b1d9d2fe6b3d0d23b5b2f847a54a246ba4d2092705047be739ae3b39363

Contents?: true

Size: 1.21 KB

Versions: 23

Compression:

Stored size: 1.21 KB

Contents

#!/usr/bin/env bash

source "$rvm_path/scripts/base"

rvm_ruby_gem_home="${rvm_ruby_gem_home:-$GEM_HOME}"

if [[ ! -d "$rvm_ruby_gem_home" ]] && command -v gem > /dev/null 2>&1; then rvm_ruby_gem_home="$(gem env home)" ; fi

usage()
{
  printf "

  Usage:

    rvm default [ruby] [environment_id]

  Action:

    {import,export,create,copy,empty,delete,name,dir,list,gemdir,install,pristine,clear,use,update,globalcache}

  Description:

    Commands for working with and manipulating gemsets within RVM.

  Examples:
    rvm default                # *uses* the default ruby
    rvm default 1.9.2          # Sets the 'global' default to 1.9.2
    rvm default list 1.9.2     # displays the environment_id for the current 1.9.2 default
    rvm default 1.9.2 1.9.2-p0 # sets the default for 'rvm 1.9.2' to p0
    rvm default clear 1.9.2    # clears the set default for 1.9.2
    rvm default clear          # removes the current global default

"
}

default_list()
{
  :
}

default_clear()
{
  :
}


args=($*)
action="${args[0]}"
args=${args[@]:1}

if [[ "list" = "$action" ]] ; then
  default_list

elif [[ "clear" = "$action" ]] ; then
  default_clear

elif [[ "help" = "$action" ]] ; then
  usage ; exit 0

else
  usage ; exit 1
fi

exit $?

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
rvm-1.1.4 scripts/default
rvm-1.1.3 scripts/default
rvm-1.1.2 scripts/default
rvm-1.1.1 scripts/default
rvm-1.1.0 scripts/default
rvm-1.0.23 scripts/default
rvm-1.0.22 scripts/default
rvm-1.0.21 scripts/default
rvm-1.0.20 scripts/default
rvm-1.0.19 scripts/default
rvm-1.0.18 scripts/default
rvm-1.0.17 scripts/default
rvm-1.0.15 scripts/default
gemrage-1.0.0 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/default
gemrage-0.4.1 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/default
gemrage-0.4.0 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/default
gemrage-0.3.2 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/default
gemrage-0.3.1 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/default
gemrage-0.3.0 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/default
gemrage-0.2.0 vendor/ruby/1.8/gems/rvm-1.0.14/scripts/default