rsync deploy broken (fix included)
| ... | ... |
@@ -197,12 +197,10 @@ end |
| 197 | 197 |
|
| 198 | 198 |
desc "copy dot files for deployment" |
| 199 | 199 |
task :copydot do |
| 200 |
- cd "#{source_dir}" do
|
|
| 201 |
- exclusions = [".", "..", ".DS_Store"] |
|
| 202 |
- Dir[".*"].each do |file| |
|
| 203 |
- if !File.directory?(file) && !exclusions.include?(file) |
|
| 204 |
- cp(file, "../#{public_dir}");
|
|
| 205 |
- end |
|
| 200 |
+ exclusions = [".", "..", ".DS_Store"] |
|
| 201 |
+ Dir["#{source_dir}/.*"].each do |file|
|
|
| 202 |
+ if !File.directory?(file) && !exclusions.include?(file) |
|
| 203 |
+ cp(file, "#{public_dir}");
|
|
| 206 | 204 |
end |
| 207 | 205 |
end |
| 208 | 206 |
end |