Merge branch 'staging' of github.com:warpc/rosa-build into staging

This commit is contained in:
George Vinogradov 2011-12-07 03:47:20 +04:00
commit c3fce82e9e
3 changed files with 8 additions and 1 deletions

View File

@ -5,7 +5,7 @@ require 'bundler/capistrano'
require 'delayed/recipes' require 'delayed/recipes'
require 'airbrake/capistrano' require 'airbrake/capistrano'
set :whenever_command, "bundle exec whenever" set :whenever_command, "bundle exec whenever"
require "whenever/capistrano" # require "whenever/capistrano"
set :default_stage, "staging" set :default_stage, "staging"
# set :stages, %w(production staging pingwinsoft ui) # auto readed # set :stages, %w(production staging pingwinsoft ui) # auto readed

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