[Logilogi-svn] SF.net SVN: logilogi: [295] projects/ogog/trunk
Status: Beta
Brought to you by:
wybow
|
From: <wy...@us...> - 2007-05-20 23:08:36
|
Revision: 295
http://logilogi.svn.sourceforge.net/logilogi/?rev=295&view=rev
Author: wybow
Date: 2007-05-20 16:08:33 -0700 (Sun, 20 May 2007)
Log Message:
-----------
Source in subdirs to prevent problems with special system users for
the server.
Modified Paths:
--------------
projects/ogog/trunk/app/controllers/download_controller.rb
Added Paths:
-----------
projects/ogog/trunk/public/pub/source/
projects/ogog/trunk/tmp/source/
Modified: projects/ogog/trunk/app/controllers/download_controller.rb
===================================================================
--- projects/ogog/trunk/app/controllers/download_controller.rb 2007-05-20 22:56:38 UTC (rev 294)
+++ projects/ogog/trunk/app/controllers/download_controller.rb 2007-05-20 23:08:33 UTC (rev 295)
@@ -13,7 +13,7 @@
class DownloadController < ApplicationController
def regenerate_source_archive
- Zip::ZipFile.open("tmp/source.zip", Zip::ZipFile::CREATE) {|zipfile|
+ Zip::ZipFile.open("tmp/source/source.zip", Zip::ZipFile::CREATE) {|zipfile|
globs = Array.new
files = Array.new
files.push("Rakefile",
@@ -45,11 +45,11 @@
end
}
}
- File.rename("tmp/source.zip","public/source.zip")
+ File.rename("tmp/source/source.zip","public/pub/source/source.zip")
end
def source
self.regenerate_source_archive
- send_file "public/source.zip", :filename => 'source.zip'
+ send_file "public/pub/source/source.zip", :filename => 'source.zip'
end
end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|