jekyll-s3-yearofmoo 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,16 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
47
47
|
paths = []
|
48
48
|
|
49
49
|
pattern ||= '**/*'
|
50
|
-
|
50
|
+
if pattern.is_a?(Array)
|
51
|
+
files = []
|
52
|
+
pattern.each do |pat|
|
53
|
+
files |= Dir[dir + '/' + pat]
|
54
|
+
end
|
55
|
+
else
|
56
|
+
files = Dir[dir + '/' + pattern]
|
57
|
+
end
|
58
|
+
raise files.to_yaml
|
59
|
+
|
51
60
|
files = files.delete_if { |f|
|
52
61
|
File.directory?(f)
|
53
62
|
}.map { |f|
|
@@ -156,7 +165,7 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
156
165
|
end
|
157
166
|
|
158
167
|
if remove_files
|
159
|
-
to_delete = remote_files -
|
168
|
+
to_delete = remote_files - to_upload
|
160
169
|
|
161
170
|
delete_all = false
|
162
171
|
keep_all = false
|