Test sudo options

This commit is contained in:
Vladimir Sharshov 2011-12-07 01:26:44 +04:00
parent c6e5ace271
commit 59a90e6136
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,7 @@
#end #end
every 5.minutes do every 5.minutes do
rake "sudo_test:projects"
# runner "Download.rotate_nginx_log" # runner "Download.rotate_nginx_log"
runner "Download.parse_and_remove_nginx_log" runner "Download.parse_and_remove_nginx_log"
end end

6
lib/tasks/sudo_test.rake Normal file
View File

@ -0,0 +1,6 @@
namespace :sudo_test do
desc "Test sudo from web"
task :projects => :environment do
system "sudo touch /root/sudo_#{Time.now.to_i}.txt"
end
end