Permalink
Browse files

allow other extensions except web files for data output

  • Loading branch information...
1 parent 78a575e commit ba5cceecc0a072f1a7db0d8fed7f0b4361de306e @rdulepet committed Jun 2, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 job.rb
View
4 job.rb
@@ -202,7 +202,7 @@ def store_results_and_logs
# .html,.htm,.css,.png,.pdf,.jpg
# iterate through directory and store files one at a time in S3
upload_files = Dir[File.join("#{Global.results_dir}/#{@curr_uuid}", "*")].select{|file| File.ftype(file) == "file" &&
- /\.(jpg|png|gif|html|htm|js|css|pdf)$/.match(file)}.each{|name|
+ /\.(jpg|png|gif|html|htm|js|css|pdf)$/.match(file.downcase)}.each{|name|
name = name.split("/").last
puts "RESULTS_FILE = #{Global.results_dir}/#{@curr_uuid}/#{name}"
upload_results_to_s3(@server_node,
@@ -222,7 +222,7 @@ def store_data
upload_files = Dir[File.join("#{Global.results_dir}/#{@curr_uuid}", "*")].select{|file|
puts "file in dir=#{file}"
File.ftype(file) == "file" &&
- !/\.(jpg|png|gif|html|htm|js|css|pdf|log|r|rb|java|php|py|pyc|jar|gz|tar|zip|class|exe|so|o)$/.match(file)}.each{|name|
+ !/\.(jpg|png|gif|html|htm|js|css|pdf|log|r|rb|java|php|py|pyc|jar|gz|tar|zip|class|exe|so|o|dll|lib)$/.match(file.downcase)}.each{|name|
name = name.split("/").last
if ! @in_data_files.has_key?(name)
puts "DATA_OUTPUT_FILE = #{Global.results_dir}/#{@curr_uuid}/#{name}"

0 comments on commit ba5ccee

Please sign in to comment.