Merge branch 'staging' of github.com:warpc/rosa-build into staging
This commit is contained in:
commit
c3fce82e9e
|
@ -5,7 +5,7 @@ require 'bundler/capistrano'
|
|||
require 'delayed/recipes'
|
||||
require 'airbrake/capistrano'
|
||||
set :whenever_command, "bundle exec whenever"
|
||||
require "whenever/capistrano"
|
||||
# require "whenever/capistrano"
|
||||
|
||||
set :default_stage, "staging"
|
||||
# set :stages, %w(production staging pingwinsoft ui) # auto readed
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#end
|
||||
|
||||
every 5.minutes do
|
||||
rake "sudo_test:projects"
|
||||
# runner "Download.rotate_nginx_log"
|
||||
runner "Download.parse_and_remove_nginx_log"
|
||||
end
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue