jekyll-s3-yearofmoo 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
@@ -76,6 +76,7 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
76
76
|
expiry = find_matching_expires_header(file)
|
77
77
|
if expiry
|
78
78
|
data[:expiry] = expiry
|
79
|
+
raise data.to_yaml
|
79
80
|
end
|
80
81
|
data
|
81
82
|
end
|
@@ -89,6 +90,8 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
89
90
|
return value
|
90
91
|
end
|
91
92
|
end
|
93
|
+
|
94
|
+
return nil
|
92
95
|
end
|
93
96
|
|
94
97
|
# Please spec me!
|
@@ -115,7 +118,6 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
115
118
|
run_with_retry do
|
116
119
|
path = "#{dir}/#{f}"
|
117
120
|
metadata = customize_file_metadata(path)
|
118
|
-
raise metadata.to_yaml
|
119
121
|
if AWS::S3::S3Object.store(f, open(path), @s3_bucket, metadata)
|
120
122
|
puts("Upload #{f}: Success!")
|
121
123
|
else
|