Skip to content

Instantly share code, notes, and snippets.

@MischaTheEvil
Last active August 29, 2015 14:09
Show Gist options
  • Save MischaTheEvil/fc6e4847fbafd6717e6e to your computer and use it in GitHub Desktop.
Save MischaTheEvil/fc6e4847fbafd6717e6e to your computer and use it in GitHub Desktop.
rvm/rvm#3144: annotated, command-only summary of the full session
============
Part one:
============
root@ubuntu:~# cd /var/www/
root@ubuntu:/var/www# type rvm | head -1
root@ubuntu:/var/www# rvm debug
# (default) gemset in use by default
root@ubuntu:/var/www# rvm gemset list
root@ubuntu:/var/www# cd redmine-master.local.lan/
# redmine_master gemset selected by using .ruby-gemset file
root@ubuntu:/var/www/redmine-master.local.lan# rvm gemset list
root@ubuntu:/var/www/redmine-master.local.lan# cd ..
# (default) gemset (re-)selected as /var/www does not have .ruby-gemset file
root@ubuntu:/var/www# rvm gemset list
root@ubuntu:/var/www# cd redmine-trunk.local.lan/
# redmine_trunk gemset selected by using .ruby-gemset file
root@ubuntu:/var/www/redmine-trunk.local.lan# rvm gemset list
root@ubuntu:/var/www/redmine-trunk.local.lan# cd ..
# (default) gemset (re-)selected as /var/www does not have .ruby-gemset file
root@ubuntu:/var/www# rvm gemset list
root@ubuntu:/var/www# cd redmine-master.local.lan/
# redmine_master gemset selected by using .ruby-gemset file
root@ubuntu:/var/www/redmine-master.local.lan# rvm gemset list
root@ubuntu:/var/www/redmine-master.local.lan# cd ../redmine-trunk.local.lan/
# redmine_trunk gemset selected by using .ruby-gemset file
root@ubuntu:/var/www/redmine-trunk.local.lan# rvm gemset list
root@ubuntu:/var/www/redmine-trunk.local.lan# cd ..
# EXPECTED: (default) gemset (re-)selected as /var/www does not have .ruby-gemset file
# ACTUALLY: redmine_master gemset is somehow selected
root@ubuntu:/var/www# rvm gemset list
root@ubuntu:/var/www#
============
Part two:
============
# manually reset to (default) gemset
root@ubuntu:/var/www# rvm gemset use default
# (default) gemset in use
root@ubuntu:/var/www# rvm gemset list
root@ubuntu:/var/www# cd redmine-master.local.lan/
# redmine_master gemset selected by using .ruby-gemset file
root@ubuntu:/var/www/redmine-master.local.lan# rvm gemset list
root@ubuntu:/var/www/redmine-master.local.lan# cd ../redmine-trunk.local.lan/
# redmine_trunk gemset selected by using .ruby-gemset file
root@ubuntu:/var/www/redmine-trunk.local.lan# rvm gemset list
root@ubuntu:/var/www/redmine-trunk.local.lan# cd ../redmine-master.local.lan/
# redmine_master gemset selected by using .ruby-gemset file
root@ubuntu:/var/www/redmine-master.local.lan# rvm gemset list
root@ubuntu:/var/www/redmine-master.local.lan# cd ..
# EXPECTED: (default) gemset (re-)selected as /var/www does not have .ruby-gemset file
# ACTUALLY: redmine_trunk gemset is somehow selected
root@ubuntu:/var/www# rvm gemset list
root@ubuntu:/var/www#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment