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
|
151
|
+
puts "Deploying Campaign = \"#{campaign}\" to #{@s3_bucket}"
|
149
152
|
else
|
150
|
-
|
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!(
|