It is good practice to keep your application configuration in the project so assuming you have such files you should be able to rebuild environment from it:
- install rvm again:
\curl -L https://get.rvm.io | bash -s stable
- load rvm into shell:
source ~/.rvm/scripts/rvm
- find the project directory, and cd to it:
cd ~/apps/my_app
- try to install and use ruby from the project:
rvm use --install --create .
- try to install gems from the project:
bundle install
For the 4th step there should be most likely file called .rvmrc
or .ruby-version
but rvm can even try to detect ruby from Gemfile
For the 5th step most ruby applications use Gemfile
to manage your gem dependencies.
man rm
for info on what it did.*
is a wildcard that matches any character any number of times, so.rvm*
means all files/folders whose name begins with.rvm
. What you should do? Reinstall your Ruby application (or restore from a recent backup). – Daniel Andersson Jul 22 '13 at 20:00