aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rakefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index 3c44a746..34479d25 100644
--- a/Rakefile
+++ b/Rakefile
@@ -224,11 +224,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