Skip to content

Instantly share code, notes, and snippets.

@jackjennings
Created February 16, 2017 05:51
Show Gist options
  • Save jackjennings/dd1d8c417e22e772a2522b37eabef08d to your computer and use it in GitHub Desktop.
Save jackjennings/dd1d8c417e22e772a2522b37eabef08d to your computer and use it in GitHub Desktop.
namespace :rvm do
task :trust_ruby_env do
on roles(:web) do
within release_path do
execute "#{fetch(:rvm_path)}/bin/rvm", "rvmrc trust #{release_path}/.ruby-env"
end
end
end
end
before "deploy:migrate", "rvm:trust_ruby_env"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment