jekyll-s3-yearofmoo 0.0.29 → 0.0.30

Sign up to get free protection for your applications and to get access to all the features.
@@ -96,7 +96,6 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
96
96
  else
97
97
  paths = files
98
98
  end
99
- raise paths.to_yaml
100
99
 
101
100
  paths
102
101
  end
@@ -144,10 +143,15 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
144
143
  # Please spec me!
145
144
  def upload_to_s3!(campaign=nil)
146
145
  if campaign
146
+ data = @config['campaigns'][data]
147
+ end
148
+
149
+ if data
147
150
  remove_files = false
148
- puts "Deploying *#{campaign}* to #{@s3_bucket}"
151
+ puts "Deploying Campaign = \"#{campaign}\" to #{@s3_bucket}"
149
152
  else
150
- puts "Deploying _site/#{pattern} to #{@s3_bucket}"
153
+ remove_files = true
154
+ puts "Deploying Dir = \"_site/#{pattern}\" to #{@s3_bucket}"
151
155
  end
152
156
 
153
157
  AWS::S3::Base.establish_connection!(
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module S3
3
- VERSION = "0.0.29"
3
+ VERSION = "0.0.30"
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
- - 29
9
- version: 0.0.29
8
+ - 30
9
+ version: 0.0.30
10
10
  platform: ruby
11
11
  authors:
12
12
  - Philippe Creux