jekyll-s3-yearofmoo 0.0.31 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
@@ -146,12 +146,14 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
146
146
|
data = @config['campaigns'][campaign]
|
147
147
|
end
|
148
148
|
|
149
|
+
dir = @production_directory || SITE_DIR
|
150
|
+
|
149
151
|
if data
|
150
152
|
remove_files = false
|
151
153
|
puts "Deploying Campaign = \"#{campaign}\" to #{@s3_bucket}"
|
152
154
|
else
|
153
155
|
remove_files = true
|
154
|
-
puts "Deploying
|
156
|
+
puts "Deploying Files = \"#{dir}/*\" to #{@s3_bucket}"
|
155
157
|
end
|
156
158
|
|
157
159
|
AWS::S3::Base.establish_connection!(
|
@@ -168,7 +170,6 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
|
|
168
170
|
|
169
171
|
remote_files = bucket.objects.map { |f| f.key }
|
170
172
|
|
171
|
-
dir = @production_directory || SITE_DIR
|
172
173
|
to_upload = local_files(campaign)
|
173
174
|
to_upload.each do |f|
|
174
175
|
run_with_retry do
|