Skip to content

Commit

Permalink
call add_ruby_command after installing gems and such
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Jun 12, 2009
1 parent bacd022 commit f81b2d8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions gem
@@ -1,11 +1,14 @@
#!/bin/bash
case $1 in
check|cleanup|install|pristine|rdoc|uninstall|update|which) exec every_ruby -S gem $@;;
check|cleanup|install|pristine|rdoc|uninstall|update|which)
every_ruby -S gem $@
for file in $RUBY_PATH/1.*/bin/*; do
add_ruby_command `basename $file`
done
;;
*)
if [ $@ = "server" ]; then
RUBY_VERSION=1.8.6 gem server --daemon --port 8186
RUBY_VERSION=1.8.7 gem server --daemon --port 8187
RUBY_VERSION=1.9.1 gem server --daemon --port 8191
gem server --daemon
else
PATH=$RUBY_PATH/$RUBY_VERSION/bin:$PATH exec $RUBY_PATH/$RUBY_VERSION/bin/gem $@
fi
Expand Down

0 comments on commit f81b2d8

Please sign in to comment.