diff options
author | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-12-10 14:42:31 +0100 |
---|---|---|
committer | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-12-10 14:46:13 +0100 |
commit | 254cdd35d62b968fdbe4905eec863d84c6a8a98d (patch) | |
tree | e7b1fda3f45e2c46cea672dd8d365fdcfc06717f /Rakefile | |
parent | e8ee5219c36736ed650c70bb7eb3743e753adff6 (diff) | |
download | my_new_personal_website-254cdd35d62b968fdbe4905eec863d84c6a8a98d.tar.xz my_new_personal_website-254cdd35d62b968fdbe4905eec863d84c6a8a98d.zip |
:copydot ignores thumbnail files starting with '._'
Diffstat (limited to '')
-rw-r--r-- | Rakefile | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -217,11 +217,8 @@ end desc "copy dot files for deployment" task :copydot, :source, :dest do |t, args| - exclusions = [".", "..", ".DS_Store"] - Dir["#{args.source}/**/.*"].each do |file| - if !File.directory?(file) && !exclusions.include?(File.basename(file)) - cp(file, file.gsub(/#{args.source}/, "#{args.dest}")); - end + FileList["#{args.source}/**/.*"].exclude("**/.", "**/..", "**/.DS_Store", "**/._*").each do |file| + cp_r file, file.gsub(/#{args.source}/, "#{args.dest}") unless File.directory?(file) end end |