blob: d4061b25f6c27e9f4dd68177847868effeb3af78 (
plain)
1
2
3
4
5
6
7
8
9
10
|
namespace :nginx do
%w[start stop restart].each do |command|
desc "#{command} nginx"
task command do
on roles(:web) do
execute :sudo, "service nginx #{command}"
end
end
end
end
|