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 All Files to #{@s3_bucket}"
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
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module S3
3
- VERSION = "0.0.31"
3
+ VERSION = "0.0.32"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 31
9
- version: 0.0.31
8
+ - 32
9
+ version: 0.0.32
10
10
  platform: ruby
11
11
  authors:
12
12
  - Philippe Creux