During my deploy, I want to create a .rvmrc file in the /current folder during a capistrano deployment.
How can I do this?
You can add tasks to a Capistrano deploy using syntax shown below :
This example has each machine install git before running the deploy. All you have to do is modify this to wget the file in question or do a bash echo.
I'll leave this here as reference. Should work with newer versions of rbenv or rvm.
or, if you're using capistrano/bundler, you need this hook instead: