From 3a8f928efc6ade181f29c6c06d81496f2d43f980 Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Fri, 11 Nov 2011 13:00:26 +0400 Subject: [PATCH] Comment unused code into Download model --- app/models/download.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/download.rb b/app/models/download.rb index 3e31bfba0..8dde3a5db 100644 --- a/app/models/download.rb +++ b/app/models/download.rb @@ -4,11 +4,11 @@ class Download < ActiveRecord::Base default_scope order(:name) class << self - def rotate_nginx_log - system("sudo mv #{ APP_CONFIG['nginx_log'] } #{ PREV_LOG_FILE }") - #system("sudo kill -USR1 `cat #{ APP_CONFIG['nginx_pid'] }`") - system("sudo /opt/nginx/sbin/nginx -s reload") - end + #def rotate_nginx_log + # system("sudo mv #{ APP_CONFIG['nginx_log'] } #{ PREV_LOG_FILE }") + # #system("sudo kill -USR1 `cat #{ APP_CONFIG['nginx_pid'] }`") + # system("sudo /opt/nginx/sbin/nginx -s reload") + #end def parse_nginx_log File.open(PREV_LOG_FILE) do |log| @@ -27,7 +27,7 @@ class Download < ActiveRecord::Base def parse_and_remove_nginx_log parse_nginx_log - system("rm -f #{PREV_LOG_FILE}") + #system("rm -f #{PREV_LOG_FILE}") end def increase(opts={})