The existing start_web/stop_web tasks use 'run' rather than 'sudo'. It would be nice if this could be configurable.
I think there is a reference to this in considerations.txt
It *is* possible to override these tasks, but it means clearing them and re-implementing them from scratch.
namespace :vlad do
desc "(Re)Start the web servers"
Rake::Task['vlad:start_web'].remote_actions.clear
remote_task :start_web, :roles => :web do
sudo "#{web_command} restart"
end
desc "Stop the web servers"
Rake::Task['vlad:stop_web'].remote_actions.clear
remote_task :stop_web, :roles => :web do
sudo "#{web_command} stop"
end
end
|