postmodern / chruby

Changes the current Ruby
MIT License
2.87k stars 190 forks source link

Question: should chruby-exec support exec-ing with multiple rubies? #274

Open nerdrew opened 10 years ago

nerdrew commented 10 years ago

Eg:

chruby-exec 1.9.2 2.1.1 jruby -- gem update bundler

or

chruby-exec all -- gem update bundler

postmodern commented 9 years ago

Maybe this could be a separate command that just does:

for ruby in "${RUBIES[@]}"; do
  chruby_use "$ruby"
  command here
  chruby_reset
done
nerdrew commented 9 years ago

Separate command works for me.