Permalink
Browse files

Install fix

  • Loading branch information...
1 parent 0cb4dd6 commit d316628c2d7a1bbcd91a1f943219c76ef06abdff Alexander Tretyakov committed Sep 8, 2009
Showing with 4 additions and 6 deletions.
  1. +4 −6 install.rb
View
10 install.rb
@@ -8,24 +8,22 @@ def self.copy_files dir, files, rails_folder="public"
FileUtils.mkdir(dest_dir) unless File.exist? dest_dir
dest_file = File.join(dest_dir, js_file)
src_file = File.join(File.dirname(__FILE__) , dir, js_file)
- FileUtils.cp_r(src_file, dest_file)
- p "copy #{dest_file}"
+ FileUtils.cp_r(src_file, dest_file) unless File.exist?(dest_file)
+
end
end
end
end
puts "Copy started..."
-begin
+
Swfupload::InstallHelpers::copy_files 'javascripts',["swfupload.js", "swfupload.fileprogress.js", "swfupload.handlers.js", "swfupload.queue.js"]
Swfupload::InstallHelpers::copy_files 'stylesheets',["swfupload.css"]
Swfupload::InstallHelpers::copy_files 'images',["FullyTransparent_65x29.png"]
Swfupload::InstallHelpers::copy_files 'flash',["swfupload.swf"]
Swfupload::InstallHelpers::copy_files 'app/views/shared',["_swfupload_form.html.erb"],''
Swfupload::InstallHelpers::copy_files 'config/initializers',["session_swf_support.rb"],''
-rescue Exception => e
- puts "e=#{e}"
-end
+
puts "Files copied - Installation complete!"

0 comments on commit d316628

Please sign in to comment.