jekyll-s3-yearofmoo 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -93,10 +93,12 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
93
93
|
|
94
94
|
remote_files = bucket.objects.map { |f| f.key }
|
95
95
|
|
96
|
+
dir = @production_directory || SITE_DIR
|
96
97
|
to_upload = local_files
|
98
|
+
raise to_upload.to_yaml
|
97
99
|
to_upload.each do |f|
|
98
100
|
run_with_retry do
|
99
|
-
if AWS::S3::S3Object.store(f, open("#{
|
101
|
+
if AWS::S3::S3Object.store(f, open("#{dir}/#{f}"), @s3_bucket, :access => 'public-read')
|
100
102
|
puts("Upload #{f}: Success!")
|
101
103
|
else
|
102
104
|
puts("Upload #{f}: FAILURE!")
|