I was scratching my head about this one for a while, and my Googling
didn't come up with much, so I thought I'd post a quick solution here.
Basically, I wanted to use Ruby Enterprise if I SSH onto my VPS and
want to use script/console.
All you have to do is SSH onto your server and add the following to
your ~/.bashrc file:
PATH="/opt/ruby-enterprise/bin:$PATH"
I've installed Ruby Enterprise there, but perhaps your path would need
to look like:
PATH="/opt/ruby-enterprise-X.X.X/bin:$PATH"
...where the X.X.X is replaced by your version number.
Anyway, once you log out and back in again, you should be using Ruby
Enterprise when you do a script/console command.
Of course, this would mean calls to ruby, irb, etc would use Ruby
Enterprise. So, I don't know that I advise this for everyone, but it's
good for me on a VPS that's only running Apache with Passenger.
- Trevor