| ... | ... |
@@ -204,10 +204,10 @@ end |
| 204 | 204 |
|
| 205 | 205 |
desc "copy dot files for deployment" |
| 206 | 206 |
task :copydot do |
| 207 |
- exclusions = [".", "..", ".DS_Store"] |
|
| 208 |
- Dir["#{source_dir}/.*"].each do |file|
|
|
| 209 |
- if !File.directory?(file) && !exclusions.include?(file) |
|
| 210 |
- cp(file, "#{public_dir}");
|
|
| 207 |
+ exclusions = [".", "..", ".DS_Store"] |
|
| 208 |
+ Dir["#{source_dir}/**/.*"].each do |file|
|
|
| 209 |
+ if !File.directory?(file) && !exclusions.include?(file) |
|
| 210 |
+ cp(file, file.gsub(/#{source_dir}/, "#{public_dir}"));
|
|
| 211 | 211 |
end |
| 212 | 212 |
end |
| 213 | 213 |
end |