From 1b871bf6dd596176d314900455912e8edbe7301d Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Tue, 17 Apr 2012 12:23:58 +0400 Subject: [PATCH] [refs #404] Remove downloads statistics functional --- config/routes.rb | 3 --- config/schedule.rb | 6 ------ {app/models => doc/downloads}/download.rb | 0 {app/controllers => doc/downloads}/downloads_controller.rb | 0 {app/views => doc}/downloads/index.html.haml | 0 doc/downloads/schedule.rb | 5 +++++ 6 files changed, 5 insertions(+), 9 deletions(-) rename {app/models => doc/downloads}/download.rb (100%) rename {app/controllers => doc/downloads}/downloads_controller.rb (100%) rename {app/views => doc}/downloads/index.html.haml (100%) create mode 100644 doc/downloads/schedule.rb diff --git a/config/routes.rb b/config/routes.rb index 70f523a8d..346266c16 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -178,9 +178,6 @@ Rosa::Application.routes.draw do resources :event_logs, :only => :index - match 'statistics/' => 'downloads#index', :as => :downloads - match 'statistics/refresh' => 'downloads#refresh', :as => :downloads_refresh - match '/forbidden', :to => 'pages#forbidden', :as => 'forbidden' match '/terms-of-service', :to => 'pages#tos', :as => 'tos' diff --git a/config/schedule.rb b/config/schedule.rb index f1d6faa22..69ec02b5d 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -7,12 +7,6 @@ # runner "Download.parse_and_remove_nginx_log" #end -every 1.day, :at => '5:00' do - #rake "sudo_test:projects" - runner "Download.rotate_nginx_log" - runner "Download.parse_and_remove_nginx_log" -end - every 1.day, :at => '4:00 am' do rake "import:sync:all", :output => 'log/sync.log' end diff --git a/app/models/download.rb b/doc/downloads/download.rb similarity index 100% rename from app/models/download.rb rename to doc/downloads/download.rb diff --git a/app/controllers/downloads_controller.rb b/doc/downloads/downloads_controller.rb similarity index 100% rename from app/controllers/downloads_controller.rb rename to doc/downloads/downloads_controller.rb diff --git a/app/views/downloads/index.html.haml b/doc/downloads/index.html.haml similarity index 100% rename from app/views/downloads/index.html.haml rename to doc/downloads/index.html.haml diff --git a/doc/downloads/schedule.rb b/doc/downloads/schedule.rb new file mode 100644 index 000000000..884c2ed43 --- /dev/null +++ b/doc/downloads/schedule.rb @@ -0,0 +1,5 @@ +every 1.day, :at => '5:00' do + #rake "sudo_test:projects" + runner "Download.rotate_nginx_log" + runner "Download.parse_and_remove_nginx_log" +end