Skip to content

Instantly share code, notes, and snippets.

@oliverbarnes
Forked from darkside/gist:1207663
Created September 10, 2011 00:25
Show Gist options
  • Save oliverbarnes/1207693 to your computer and use it in GitHub Desktop.
Save oliverbarnes/1207693 to your computer and use it in GitHub Desktop.
God override sudo with rvmsudo
namespace :god do
namespace :restart do
task :default, :roles => :app, :except => { :no_release => true } do
run "rvmsudo #{bin_god} restart #{application}"
end
desc "|capistrano-recipes| Restarts the app server"
task :app, :roles => :app, :except => { :no_release => true } do
run "rvmsudo #{bin_god} restart #{application}-#{app_server.to_s.downcase}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment